Old EDG fixes

[SVN r15392]
This commit is contained in:
Dave Abrahams
2002-09-17 00:49:09 +00:00
parent 0b8eb1d8f4
commit 40ab567d08

View File

@@ -31,12 +31,16 @@ struct integral_c
// have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC), // have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC),
// while some other don't like 'value + 1' (Borland) // while some other don't like 'value + 1' (Borland)
#if defined(__BORLANDC__) || defined(__IBMCPP__) #if defined(__BORLANDC__) || defined(__IBMCPP__) || defined(__EDG_VERSION__) && __EDG_VERSION__ <= 241
typedef integral_c<T, N + 1> next; BOOST_STATIC_CONSTANT(T, next_value = (N + 1));
typedef integral_c<T, N - 1> prior; BOOST_STATIC_CONSTANT(T, prior_value = (N - 1));
typedef integral_c<T, next_value> next;
typedef integral_c<T, prior_value> prior;
#else #else
typedef integral_c<T, value + 1> next; BOOST_STATIC_CONSTANT(T, next_value = (value + 1));
typedef integral_c<T, value - 1> prior; BOOST_STATIC_CONSTANT(T, prior_value = (value - 1));
typedef integral_c<T, next_value> next;
typedef integral_c<T, prior_value> prior;
#endif #endif
// enables uniform function call syntax for families of overloaded // enables uniform function call syntax for families of overloaded