]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/bind/test/bind_unary_addr.cpp
1 #include <boost/config.hpp>
3 #if defined(BOOST_MSVC)
4 #pragma warning(disable: 4786) // identifier truncated in debug info
5 #pragma warning(disable: 4710) // function not inlined
6 #pragma warning(disable: 4711) // function selected for automatic inline expansion
7 #pragma warning(disable: 4514) // unreferenced inline removed
11 // bind_unary_addr.cpp
13 // Copyright (c) 2005 Peter Dimov
15 // Distributed under the Boost Software License, Version 1.0. (See
16 // accompanying file LICENSE_1_0.txt or copy at
17 // http://www.boost.org/LICENSE_1_0.txt)
20 #include <boost/bind.hpp>
22 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
23 #pragma warning(push, 3)
28 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
37 void operator& () const;
45 void operator()() const
53 void operator()(int) const
57 void operator()(int, int)
61 void operator()(int, int) const
65 void operator()(int, int, int)
69 void operator()(int, int, int) const
73 void operator()(int, int, int, int)
77 void operator()(int, int, int, int) const
81 void operator()(int, int, int, int, int)
85 void operator()(int, int, int, int, int) const
89 void operator()(int, int, int, int, int, int)
93 void operator()(int, int, int, int, int, int) const
97 void operator()(int, int, int, int, int, int, int)
101 void operator()(int, int, int, int, int, int, int) const
105 void operator()(int, int, int, int, int, int, int, int)
109 void operator()(int, int, int, int, int, int, int, int) const
113 void operator()(int, int, int, int, int, int, int, int, int)
117 void operator()(int, int, int, int, int, int, int, int, int) const
122 template<class F
> void test_const( F
const & f
)
127 template<class F
> void test( F f
)
135 test( boost::bind
<void>( X() ) );
136 test( boost::bind
<void>( X(), 1 ) );
137 test( boost::bind
<void>( X(), 1, 2 ) );
138 test( boost::bind
<void>( X(), 1, 2, 3 ) );
139 test( boost::bind
<void>( X(), 1, 2, 3, 4 ) );
140 test( boost::bind
<void>( X(), 1, 2, 3, 4, 5 ) );
141 test( boost::bind
<void>( X(), 1, 2, 3, 4, 5, 6 ) );
142 test( boost::bind
<void>( X(), 1, 2, 3, 4, 5, 6, 7 ) );
143 test( boost::bind
<void>( X(), 1, 2, 3, 4, 5, 6, 7, 8 ) );
144 test( boost::bind
<void>( X(), 1, 2, 3, 4, 5, 6, 7, 8, 9 ) );