diff --git a/test/modifiers.cpp b/test/modifiers.cpp index 8c44233..41a9da9 100755 --- a/test/modifiers.cpp +++ b/test/modifiers.cpp @@ -14,3 +14,6 @@ BOOST_STATIC_ASSERT(boost::type_of::test::value); BOOST_STATIC_ASSERT(boost::type_of::test::value); BOOST_STATIC_ASSERT(boost::type_of::test::value); BOOST_STATIC_ASSERT(boost::type_of::test::value); +BOOST_STATIC_ASSERT(boost::type_of::test::value); +BOOST_STATIC_ASSERT(boost::type_of::test::value); + diff --git a/test/test.hpp b/test/test.hpp index f0cb166..cd694c0 100755 --- a/test/test.hpp +++ b/test/test.hpp @@ -8,23 +8,24 @@ #include #include #include +#include namespace boost { namespace type_of { - template + template struct test_wrapper{}; - template + template T test_make(T*); - template + template struct test { - enum {value = boost::is_same< + BOOST_STATIC_CONSTANT(std::size_t,value = (boost::is_same< BOOST_TYPEOF_TPL(test_make((test_wrapper*)0)), test_wrapper - >::value - }; + >::value) + ); }; }}