mirror of
https://github.com/boostorg/tti.git
synced 2026-01-25 06:42:25 +00:00
21 lines
819 B
C++
21 lines
819 B
C++
#include "TestHasMemberData.hpp"
|
|
#include <boost/detail/lightweight_test.hpp>
|
|
|
|
int main()
|
|
{
|
|
|
|
BOOST_TEST((tti::has_member_data_AnInt<AType,int>::value));
|
|
BOOST_TEST((tti::has_member_data_AnInt<AnotherType,long>::value));
|
|
BOOST_TEST((tti::has_member_data_aMember<AnotherType,bool>::value));
|
|
BOOST_TEST((!tti::has_member_data_aMember<AnotherType,int>::value));
|
|
BOOST_TEST((tti::CMember<AnotherType,bool>::value));
|
|
BOOST_TEST((!tti::has_member_data_someDataMember<AType,short>::value));
|
|
BOOST_TEST((tti::has_member_data_IntBT<AType,AType::BType>::value));
|
|
BOOST_TEST((tti::NestedData<AType,AType::BType::CType>::value));
|
|
BOOST_TEST((tti::AOther<AnotherType,AType>::value));
|
|
BOOST_TEST((tti::has_member_data_ONestStr<AnotherType,AType::AStructType>::value));
|
|
|
|
return boost::report_errors();
|
|
|
|
}
|