2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 06:42:25 +00:00
Files
tti/test/TestHasTypeCheckTypedef.cpp
Edward Diener 35029182a8 Updated docs and combined has_type
[SVN r68448]
2011-01-26 00:58:45 +00:00

20 lines
765 B
C++

#include "TestHasTypeCheckTypedef.hpp"
#include <boost/detail/lightweight_test.hpp>
int main()
{
BOOST_TEST((tti::has_type_AnIntType<AType,int>::value));
BOOST_TEST((tti::NameStruct<AType,AType::AStructType>::value));
BOOST_TEST((tti::has_type_AnIntTypeReference<AType,int &>::value));
BOOST_TEST((tti::has_type_BType<AType,AType::BType>::value));
BOOST_TEST((tti::TheInteger<AType::BType,int>::value));
BOOST_TEST((tti::has_type_CType<AType::BType,AType::BType::CType>::value));
BOOST_TEST((tti::has_type_AnotherIntegerType<AType::BType::CType,int>::value));
BOOST_TEST((tti::SomethingElse<AnotherType,AType::AnIntType>::value));
BOOST_TEST((!tti::has_type_NoOtherType<AnotherType,double>::value));
return boost::report_errors();
}