2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-26 07:02:14 +00:00
Files
tti/test/TestHasTypeCompile.cpp
Edward Diener e395edf104 Updated more tests
[SVN r67232]
2010-12-15 02:12:51 +00:00

26 lines
732 B
C++

#include "TestHasType.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
// You can always instantiate without compiler errors
tti::has_type_AnIntType<AnotherType> aVar1;
tti::has_type_NoOtherType<AType> aVar2;
// Compile time asserts
BOOST_MPL_ASSERT((tti::has_type_AnIntType<AType>));
BOOST_MPL_ASSERT((tti::has_type_AnIntTypeReference<AType>));
BOOST_MPL_ASSERT((tti::NameStruct<AType>));
BOOST_MPL_ASSERT((tti::has_type_BType<AType>));
BOOST_MPL_ASSERT((tti::TheInteger<AType::BType>));
BOOST_MPL_ASSERT((tti::has_type_CType<AType::BType>));
BOOST_MPL_ASSERT((tti::has_type_AnotherIntegerType<AType::BType::CType>));
BOOST_MPL_ASSERT((tti::SomethingElse<AnotherType>));
return 0;
}