From f719f4b515f3fee0aad0164da09b97985136c54e Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sun, 21 Jan 2001 21:36:36 +0000 Subject: [PATCH] define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS only if _RWSTD_VER < 0x0203 [SVN r8695] --- include/boost/config.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/config.hpp b/include/boost/config.hpp index 9a1d51c9..c268a948 100644 --- a/include/boost/config.hpp +++ b/include/boost/config.hpp @@ -417,13 +417,16 @@ // end of compiler specific portion ----------------------------------------// -#if defined(BOOST_NO_LIMITS) || defined(_RWSTD_VER) || (defined(__SGI_STL_PORT) && __SGI_STL_PORT <= 0x410 && __STL_STATIC_CONST_INIT_BUG) +#if defined(BOOST_NO_LIMITS) || \ + (defined(_RWSTD_VER) && _RWSTD_VER < 0x0203) || \ + (defined(__SGI_STL_PORT) && __SGI_STL_PORT <= 0x410 && __STL_STATIC_CONST_INIT_BUG) // STLPort 4.0 doesn't define the static constants in numeric_limits<> so that they // can be used at compile time if the compiler bug indicated by // __STL_STATIC_CONST_INIT_BUG is present. // Rogue wave STL (C++ Builder) also has broken numeric_limits // with default template defining members out of line. +// However, Compaq C++ also uses RogueWave (version 2.03) and it's ok. # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS #endif @@ -476,6 +479,3 @@ namespace std { #endif // BOOST_CONFIG_HPP - - -