mirror of
https://github.com/boostorg/tti.git
synced 2026-01-27 07:22:12 +00:00
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#include "TestMFHasMemberData.hpp"
|
|
#include <boost/mpl/assert.hpp>
|
|
|
|
int main()
|
|
{
|
|
|
|
BOOST_MPL_ASSERT((tti::mf_has_member_data
|
|
<
|
|
tti::has_member_AnInt,
|
|
boost::mpl::identity<AType>,
|
|
boost::mpl::identity<int>
|
|
>
|
|
));
|
|
|
|
BOOST_MPL_ASSERT((tti::mf_has_member_data
|
|
<
|
|
tti::has_member_AnInt,
|
|
boost::mpl::identity<AnotherType>,
|
|
boost::mpl::identity<long>
|
|
>
|
|
));
|
|
|
|
BOOST_MPL_ASSERT((tti::mf_has_member_data
|
|
<
|
|
tti::has_member_aMember,
|
|
boost::mpl::identity<AnotherType>,
|
|
boost::mpl::identity<bool>
|
|
>
|
|
));
|
|
|
|
BOOST_MPL_ASSERT((tti::mf_has_member_data
|
|
<
|
|
tti::CMember,
|
|
boost::mpl::identity<AnotherType>,
|
|
boost::mpl::identity<bool>
|
|
>
|
|
));
|
|
|
|
return 0;
|
|
|
|
}
|