2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 19:12:11 +00:00
Files
tti/test/TestMFHasMemberData.cpp
Edward Diener 344360c629 Changes to functionality for version 1.1
[SVN r68610]
2011-02-02 01:44:12 +00:00

86 lines
2.2 KiB
C++

#include "TestMFHasMemberData.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((tti::mf_has_member_data
<
tti::has_member_data_AnInt,
boost::mpl::identity<AType>,
boost::mpl::identity<int>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::has_member_data_AnInt,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<long>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::has_member_data_aMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::CMember,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<bool>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::has_member_data_IntBT,
boost::mpl::identity<AType>,
tti::member_type_BType<AType>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::NestedData,
boost::mpl::identity<AType>,
tti::mf_member_type
<
tti::member_type_CType,
tti::member_type_BType<AType>
>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::AOther,
boost::mpl::identity<AnotherType>,
boost::mpl::identity<AType>
>
::value
));
BOOST_TEST((tti::mf_has_member_data
<
tti::has_member_data_ONestStr,
boost::mpl::identity<AnotherType>,
tti::member_type_AStructType<AType>
>
::value
));
return boost::report_errors();
}