]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/bind/test/bind_void_dm_test.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_void_mf_test.cpp - test for bind<void> with member functions
13 // Copyright (c) 2008 Peter Dimov
14 // Copyright (c) 2014 Agustin Berge
16 // Distributed under the Boost Software License, Version 1.0. (See
17 // accompanying file LICENSE_1_0.txt or copy at
18 // http://www.boost.org/LICENSE_1_0.txt)
21 #include <boost/bind.hpp>
22 #include <boost/ref.hpp>
24 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
25 #pragma warning(push, 3)
30 #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
34 #include <boost/detail/lightweight_test.hpp>
43 void member_data_test()
48 boost::bind
<void>( &Z::m
, _1
)( z
);
49 boost::bind
<void>( &Z::m
, _1
)( pz
);
51 boost::bind
<void>( &Z::m
, z
)();
52 boost::bind
<void>( &Z::m
, pz
)();
53 boost::bind
<void>( &Z::m
, boost::ref(z
) )();
59 boost::bind
<void>( &Z::m
, _1
)( cz
);
60 boost::bind
<void>( &Z::m
, _1
)( pcz
);
62 boost::bind
<void>( &Z::m
, cz
)();
63 boost::bind
<void>( &Z::m
, pcz
)();
64 boost::bind
<void>( &Z::m
, boost::ref(cz
) )();
71 return boost::report_errors();