From 9d392f1cdd883638f250a56becf315ea794edee1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 5 Apr 2001 11:35:31 +0000 Subject: [PATCH] Sunpro fixes (can't cope with NESTED_TEST) [SVN r9720] --- include/boost/type_traits/type_traits_test.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/type_traits/type_traits_test.hpp b/include/boost/type_traits/type_traits_test.hpp index c3eef30..0fe5a0c 100644 --- a/include/boost/type_traits/type_traits_test.hpp +++ b/include/boost/type_traits/type_traits_test.hpp @@ -221,6 +221,7 @@ struct nested_test } }; +#ifndef __SUNPRO_CC #define NESTED_DECL(what)\ template \ struct BOOST_TT_JOIN(nested_tester_,what){\ @@ -229,6 +230,10 @@ struct BOOST_TT_JOIN(nested_tester_,what){\ }; #define NESTED_TEST(what, with)\ {BOOST_TT_JOIN(nested_tester_,what) check(#what "<" #with ">"); (void)check;} +#else +#define NESTED_DECL(what) +#define NESTED_TEST(what, with) +#endif #define BOOST_TT_JOIN( X, Y ) BOOST_DO_TT_JOIN( X, Y ) #define BOOST_DO_TT_JOIN( X, Y ) X##Y @@ -373,3 +378,4 @@ struct test_abc2 +