|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-11-10 12:40:20
Author: johnmaddock
Date: 2007-11-10 12:40:19 EST (Sat, 10 Nov 2007)
New Revision: 40997
URL: http://svn.boost.org/trac/boost/changeset/40997
Log:
Fix issue #1424.
Text files modified:
trunk/libs/type_traits/test/promote_enum_test.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/libs/type_traits/test/promote_enum_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/promote_enum_test.cpp (original)
+++ trunk/libs/type_traits/test/promote_enum_test.cpp 2007-11-10 12:40:19 EST (Sat, 10 Nov 2007)
@@ -29,6 +29,7 @@
#include <climits>
#include "promote_util.hpp"
+#include <boost/detail/workaround.hpp>
enum IntEnum1 { IntEnum1_min = -5 , IntEnum1_max = 5 };
enum IntEnum2 { IntEnum2_min = SHRT_MIN, IntEnum2_max = SHRT_MAX };
@@ -90,8 +91,8 @@
#endif
}
-#if (defined(BOOST_MSVC) && BOOST_MSVC <= 1400 ) || \
- (defined(BOOST_INTEL_WIN) && BOOST_INTEL_WIN <= 1000)
+#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) ) || \
+ BOOST_WORKAROUND(BOOST_INTEL_WIN, BOOST_TESTED_AT(1000))
// Don't test UIntEnum on VC++ 8.0 and Intel for Windows 9.0,
// they are broken. More info is on top of this file.
#else
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk