2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 19:12:11 +00:00
Files
tti/test/TestHasMemberCompile.cpp
Edward Diener bf0c0ecbae Tests and initial text files
[SVN r67094]
2010-12-08 01:58:39 +00:00

21 lines
842 B
C++

#include "TestHasMember.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
BOOST_MPL_ASSERT((tti::has_member_AnInt<int AType::*>));
BOOST_MPL_ASSERT((tti::has_member_AnInt<long AnotherType::*>));
BOOST_MPL_ASSERT((tti::has_member_VoidFunction<void (AType::*)()>));
BOOST_MPL_ASSERT((tti::has_member_IntFunction<int (AType::*)()>));
BOOST_MPL_ASSERT((tti::has_member_IntFunction<double (AnotherType::*)(int)>));
BOOST_MPL_ASSERT((tti::has_member_aFunction<AType (AnotherType::*)(int)>));
BOOST_MPL_ASSERT((tti::has_member_anotherFunction<int (AnotherType::*)(AType)>));
BOOST_MPL_ASSERT((tti::has_member_sFunction<AType::AnIntType (AnotherType::*)(int,long,double)>));
BOOST_MPL_ASSERT((tti::has_member_aMember<bool AnotherType::*>));
BOOST_MPL_ASSERT((tti::has_member_cMem<bool AnotherType::*>));
return 0;
}