]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/boost_bind_compatibility/bind_unary_addr.cpp
1 /*==============================================================================
2 Copyright (c) 2005 Peter Dimov
3 Copyright (c) 2005-2010 Joel de Guzman
4 Copyright (c) 2010 Thomas Heller
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
10 #include <boost/config.hpp>
12 #if defined(BOOST_MSVC)
13 #pragma warning(disable: 4786) // identifier truncated in debug info
14 #pragma warning(disable: 4710) // function not inlined
15 #pragma warning(disable: 4711) // function selected for automatic inline expansion
16 #pragma warning(disable: 4514) // unreferenced inline removed
19 #include <boost/phoenix/core.hpp>
20 #include <boost/phoenix/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;
41 typedef void result_type
;
47 void operator()() const
55 void operator()(int) const
59 void operator()(int, int)
63 void operator()(int, int) const
67 void operator()(int, int, int)
71 void operator()(int, int, int) const
75 void operator()(int, int, int, int)
79 void operator()(int, int, int, int) const
83 void operator()(int, int, int, int, int)
87 void operator()(int, int, int, int, int) const
91 void operator()(int, int, int, int, int, int)
95 void operator()(int, int, int, int, int, int) const
99 void operator()(int, int, int, int, int, int, int)
103 void operator()(int, int, int, int, int, int, int) const
107 void operator()(int, int, int, int, int, int, int, int)
111 void operator()(int, int, int, int, int, int, int, int) const
115 void operator()(int, int, int, int, int, int, int, int, int)
119 void operator()(int, int, int, int, int, int, int, int, int) const
124 template<class F
> void test_const( F
const & f
)
129 template<class F
> void test( F f
)
137 using boost::phoenix::bind
;
140 test( bind( X(), 1 ) );
141 test( bind( X(), 1, 2 ) );
142 test( bind( X(), 1, 2, 3 ) );
143 test( bind( X(), 1, 2, 3, 4 ) );
144 test( bind( X(), 1, 2, 3, 4, 5 ) );
145 test( bind( X(), 1, 2, 3, 4, 5, 6 ) );
146 test( bind( X(), 1, 2, 3, 4, 5, 6, 7 ) );
147 test( bind( X(), 1, 2, 3, 4, 5, 6, 7, 8 ) );
148 test( bind( X(), 1, 2, 3, 4, 5, 6, 7, 8, 9 ) );