2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 07:02:14 +00:00
Files
tti/test/TestMFMemberTypeCompile.cpp
Edward Diener ebc6524a56 New tests and support for gcc 4.3.0
[SVN r67412]
2010-12-22 17:26:52 +00:00

110 lines
2.8 KiB
C++

#include "TestMFMemberType.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::member_type_AnIntType,
boost::mpl::identity<AType>
>
::type,
AType::AnIntType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::NameStruct,
boost::mpl::identity<AType>
>
::type,
AType::AStructType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::member_type_AnIntTypeReference,
boost::mpl::identity<AType>
>
::type,
AType::AnIntTypeReference
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::member_type_BType,
boost::mpl::identity<AType>
>
::type,
AType::BType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::TheInteger,
tti::member_type_BType<AType>
>
::type,
AType::BType::AnIntegerType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::member_type_CType,
tti::member_type_BType<AType>
>
::type,
AType::BType::CType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::member_type_AnotherIntegerType,
tti::mf_member_type
<
tti::member_type_CType,
tti::member_type_BType<AType>
>
>
::type,
AType::BType::CType::AnotherIntegerType
>
));
BOOST_MPL_ASSERT((boost::is_same
<
tti::mf_member_type
<
tti::SomethingElse,
boost::mpl::identity<AnotherType>
>
::type,
AnotherType::someOtherType
>
));
return 0;
}