From f576bcf847c0709fa55235ec055b145eaec612b5 Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Fri, 28 Sep 2007 20:11:32 +0000 Subject: [PATCH] Modified tests to account for Borland compiler [SVN r39590] --- test/modifiers.cpp | 3 +++ test/test.hpp | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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) + ); }; }}