]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/function_types/test/synthesis/member_object_pointer.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / function_types / test / synthesis / member_object_pointer.cpp
1
2 // (C) Copyright Tobias Schwinger
3 //
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
6
7 //------------------------------------------------------------------------------
8
9 #include <boost/mpl/assert.hpp>
10 #include <boost/mpl/vector.hpp>
11 #include <boost/type_traits/is_same.hpp>
12 #include <boost/function_types/member_object_pointer.hpp>
13
14 namespace ft = boost::function_types;
15 namespace mpl = boost::mpl;
16 using boost::is_same;
17
18 class C;
19
20 typedef int C::* expected;
21
22
23 BOOST_MPL_ASSERT((
24 is_same< ft::member_object_pointer< mpl::vector<int,C> >::type
25 , expected >
26 ));
27