]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/function_types/test/synthesis/function_reference.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / function_types / test / synthesis / function_reference.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/function_reference.hpp>
13
14 namespace ft = boost::function_types;
15 namespace mpl = boost::mpl;
16
17 using boost::is_same;
18
19 typedef int (& expected)(int);
20
21 BOOST_MPL_ASSERT((
22 is_same< ft::function_reference< mpl::vector<int,int> >::type, expected >
23 ));
24