From a0dac351fb5287b3082b58979b326886d6623937 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 22 Nov 2006 15:58:39 +0000 Subject: [PATCH] Preliminary C++0x support [SVN r36149] --- include/boost/static_assert.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index 9d24c05..6ac3f3d 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -28,6 +28,10 @@ # define BOOST_SA_GCC_WORKAROUND #endif +#ifdef BOOST_CXX0X_STATIC_ASSERT +# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B) +#else + namespace boost{ // HP aCC cannot deal with missing names for template value parameters @@ -111,7 +115,7 @@ template struct static_assert_test{}; enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \ = sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) } #endif - +#endif // ndef BOOST_HAS_STATIC_ASSERT #endif // BOOST_STATIC_ASSERT_HPP