From a674ac41764c0911dbd385bf2a60d9128ca485ec Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 30 May 2001 11:31:15 +0000 Subject: [PATCH] Added comment about lack of static_cast [SVN r10243] --- include/boost/static_assert.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index af42173..4d38b9d 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -53,6 +53,9 @@ template struct static_assert_test{}; // an eye catching error message. The result of the sizeof expression is either // used as an enum initialiser, or as a template argument depending which version // is in use... +// Note that the argument to the assert is explicitly cast to bool using old- +// 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__) #ifndef BOOST_MSVC