mirror of
https://github.com/boostorg/tti.git
synced 2026-01-26 19:12:11 +00:00
80 lines
1.8 KiB
C++
80 lines
1.8 KiB
C++
#include "TestMFHasType.hpp"
|
|
#include <boost/detail/lightweight_test.hpp>
|
|
|
|
int main()
|
|
{
|
|
|
|
using namespace boost::mpl::placeholders;
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::has_type_AnIntType<_>,
|
|
boost::mpl::identity<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::NameStruct<_>,
|
|
boost::mpl::identity<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::has_type_AnIntTypeReference<_>,
|
|
boost::mpl::identity<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::has_type_BType<_>,
|
|
boost::mpl::identity<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::TheInteger<_>,
|
|
tti::member_type_BType<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::has_type_CType<_>,
|
|
tti::member_type_BType<AType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::has_type_AnotherIntegerType<_>,
|
|
tti::mf_member_type
|
|
<
|
|
tti::member_type_CType<_>,
|
|
tti::member_type_BType<AType>
|
|
>
|
|
>
|
|
::value
|
|
));
|
|
|
|
BOOST_TEST((tti::mf_has_type
|
|
<
|
|
tti::SomethingElse<_>,
|
|
boost::mpl::identity<AnotherType>
|
|
>
|
|
::value
|
|
));
|
|
|
|
return boost::report_errors();
|
|
|
|
}
|