]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/tti/test/test_mem_type_compile.cpp
2 // (C) Copyright Edward Diener 2011
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 #include "test_mem_type.hpp"
8 #include <boost/mpl/assert.hpp>
13 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(AnIntType
)<AType
>::type
>));
14 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(AnIntTypeReference
)<AType
>::type
>));
15 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(BType
)<AType
>::type
>));
16 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<TheInteger
<AType::BType
>::type
>));
17 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(AnotherIntegerType
)<AType::BType::CType
>::type
>));
18 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<SomethingElse
<AnotherType
>::type
>));
20 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<NameStruct
<AType
,MarkerType
>::type
,NameStruct
<AType
,MarkerType
>::boost_tti_marker_type
>));
21 BOOST_MPL_ASSERT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(CType
)<AType::BType
,MarkerType
>::type
,BOOST_TTI_MEMBER_TYPE_GEN(CType
)<AType::BType
,MarkerType
>::boost_tti_marker_type
>));
23 BOOST_MPL_ASSERT_NOT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(BType
)<AnotherType
>::type
>));
24 BOOST_MPL_ASSERT_NOT((boost::tti::valid_member_type
<BOOST_TTI_MEMBER_TYPE_GEN(NoExistType
)<AType
,MarkerType
>::type
,BOOST_TTI_MEMBER_TYPE_GEN(NoExistType
)<AType
,MarkerType
>::boost_tti_marker_type
>));