From 328b4fee165aeee9f313b166cd620d9a2dd6c08b Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Sun, 21 Dec 2003 16:34:52 +0000 Subject: [PATCH] MWCW 8.3 no longer needs the enum version. This fixes a problem in Spirit, because of two header files both having a static assert at the same line. [SVN r21364] --- include/boost/static_assert.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index 0f26210..c6105c7 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -15,6 +15,7 @@ #define BOOST_STATIC_ASSERT_HPP #include +#include #ifdef __BORLANDC__ // @@ -56,7 +57,8 @@ template struct static_assert_test{}; // style casts: too many compilers currently have problems with static_cast // when used inside integral constant expressions. // -#if !defined(BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS) && !defined(__MWERKS__) +#if !defined(BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS) && \ + !BOOST_WORKAROUND(__MWERKS__, < 0x3003) #if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) // __LINE__ macro broken when -ZI is used see Q199057