2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 19:12:11 +00:00
Files
tti/test/TestHasMember.cpp
Edward Diener a8a106ed91 Updated tests and test data
[SVN r67766]
2011-01-08 00:49:41 +00:00

28 lines
1.3 KiB
C++

#include "TestHasMember.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST(tti::has_member_AnInt<int AType::*>::value);
BOOST_TEST(tti::has_member_AnInt<long AnotherType::*>::value);
BOOST_TEST(tti::has_member_VoidFunction<void (AType::*)()>::value);
BOOST_TEST(tti::FunctionReturningInt<int (AType::*)()>::value);
BOOST_TEST(tti::FunctionReturningInt<double (AnotherType::*)(int)>::value);
BOOST_TEST(tti::has_member_aFunction<AType (AnotherType::*)(int)>::value);
BOOST_TEST(tti::AnotherIntFunction<int (AnotherType::*)(AType)>::value);
BOOST_TEST(tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>::value);
BOOST_TEST(tti::has_member_aMember<bool AnotherType::*>::value);
BOOST_TEST(!tti::has_member_aMember<int AnotherType::*>::value);
BOOST_TEST(tti::CMember<bool AnotherType::*>::value);
BOOST_TEST(!tti::has_member_someDataMember<short AType::*>::value);
BOOST_TEST(!tti::has_member_someFunctionMember<AType (AnotherType::*)(long,int)>::value);
BOOST_TEST(tti::has_member_IntBT<AType::BType AType::*>::value);
BOOST_TEST(tti::NestedData<AType::BType::CType AType::*>::value);
BOOST_TEST(tti::AOther<AType AnotherType::*>::value);
BOOST_TEST(tti::has_member_ONestStr<AType::AStructType AnotherType::*>::value);
return boost::report_errors();
}