]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/detail/test/reference_content_test.cpp
2 // Copyright 2018 Daniel James.
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/detail/reference_content.hpp>
7 #include <boost/static_assert.hpp>
8 #include <boost/type_traits/is_same.hpp>
10 BOOST_STATIC_ASSERT((boost::is_same
<int, boost::detail::make_reference_content
<int>::type
>::value
));
11 BOOST_STATIC_ASSERT((boost::is_same
<boost::detail::reference_content
<int&>, boost::detail::make_reference_content
<int&>::type
>::value
));
12 BOOST_STATIC_ASSERT((boost::is_same
<int, boost::detail::make_reference_content
<>::apply
<int>::type
>::value
));
13 BOOST_STATIC_ASSERT((boost::is_same
<boost::detail::reference_content
<int&>, boost::detail::make_reference_content
<>::apply
<int&>::type
>::value
));
14 BOOST_STATIC_ASSERT((boost::has_nothrow_copy
<boost::detail::make_reference_content
<int&>::type
>::value
));