2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 06:42:25 +00:00
Files
tti/test/TestHasTemplateCheckParamsCompile.cpp
Edward Diener 31a0db5320 Updated tests
[SVN r67200]
2010-12-13 03:45:05 +00:00

24 lines
744 B
C++

#include "TestHasTemplateCheckParams.hpp"
#include <boost/mpl/assert.hpp>
int main()
{
// You can always instantiate without compiler errors
tti::has_template_check_params_TemplateNotExist<AnotherType> aVar1;
// Compile time asserts
BOOST_MPL_ASSERT((tti::has_template_check_params_ATPMemberTemplate<AType>));
BOOST_MPL_ASSERT((tti::HaveCL<AType>));
BOOST_MPL_ASSERT((tti::has_template_check_params_AMemberTemplate<AType>));
BOOST_MPL_ASSERT((tti::HaveAnotherMT<AType>));
BOOST_MPL_ASSERT((tti::has_template_check_params_SomeMemberTemplate<AnotherType>));
BOOST_MPL_ASSERT((tti::ATemplateWithParms<AnotherType>));
BOOST_MPL_ASSERT((tti::has_template_check_params_SimpleTMP<AnotherType>));
return 0;
}