mirror of
https://github.com/boostorg/tti.git
synced 2026-01-25 06:42:25 +00:00
28 lines
831 B
C++
28 lines
831 B
C++
#include "TestVMHasTemplateCheckParams.hpp"
|
|
#include <boost/mpl/assert.hpp>
|
|
|
|
int main()
|
|
{
|
|
|
|
#if !defined(BOOST_NO_VARIADIC_MACROS)
|
|
|
|
// 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>));
|
|
|
|
#endif //!defined(BOOST_NO_VARIADIC_MACROS)
|
|
|
|
return 0;
|
|
|
|
}
|