mirror of
https://github.com/boostorg/tti.git
synced 2026-01-25 18:52:17 +00:00
24 lines
746 B
C++
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;
|
|
|
|
}
|