]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/bind/test/bind_dm3_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_dm3_test.cpp - data members (regression 1.31 - 1.32)
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/bind.hpp>
21 #include <boost/core/lightweight_test.hpp>
24 using namespace boost::placeholders
;
30 typedef std::pair
<int, int> pair_type
;
32 pair_type
pair( 10, 20 );
34 int const & x
= boost::bind( &pair_type::first
, _1
)( pair
);
36 BOOST_TEST( &pair
.first
== &x
);
38 return boost::report_errors();