From 40ab567d080bad5754bee35eedeb146faa13ebbb Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 17 Sep 2002 00:49:09 +0000 Subject: [PATCH] Old EDG fixes [SVN r15392] --- include/boost/mpl/integral_c.hpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/boost/mpl/integral_c.hpp b/include/boost/mpl/integral_c.hpp index d904f01..8fecd90 100644 --- a/include/boost/mpl/integral_c.hpp +++ b/include/boost/mpl/integral_c.hpp @@ -31,12 +31,16 @@ struct integral_c // have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC), // while some other don't like 'value + 1' (Borland) -#if defined(__BORLANDC__) || defined(__IBMCPP__) - typedef integral_c next; - typedef integral_c prior; +#if defined(__BORLANDC__) || defined(__IBMCPP__) || defined(__EDG_VERSION__) && __EDG_VERSION__ <= 241 + BOOST_STATIC_CONSTANT(T, next_value = (N + 1)); + BOOST_STATIC_CONSTANT(T, prior_value = (N - 1)); + typedef integral_c next; + typedef integral_c prior; #else - typedef integral_c next; - typedef integral_c prior; + BOOST_STATIC_CONSTANT(T, next_value = (value + 1)); + BOOST_STATIC_CONSTANT(T, prior_value = (value - 1)); + typedef integral_c next; + typedef integral_c prior; #endif // enables uniform function call syntax for families of overloaded