2
0
mirror of https://github.com/boostorg/tti.git synced 2026-01-25 18:52:17 +00:00
Files
tti/test/TestVMHasTemplateCheckParamsCompile.cpp
Edward Diener 483971959a Testing variadic macro functionality
[SVN r67242]
2010-12-15 17:12:57 +00:00

24 lines
746 B
C++

#include "TestVMHasTemplateCheckParams.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;
}