mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 14:54:30 +02:00
Workaround HP bugs
[SVN r16513]
This commit is contained in:
@@ -22,7 +22,14 @@
|
||||
namespace boost {
|
||||
namespace mpl {
|
||||
|
||||
template< typename T, T N >
|
||||
template< typename T,
|
||||
// the type of non-type template arguments may not depend on template arguments
|
||||
#if defined(BOOST_STRICT_CONFIG) || !defined(__HP_aCC) || __HP_aCC > 33900
|
||||
T
|
||||
#else
|
||||
long
|
||||
#endif
|
||||
N >
|
||||
struct integral_c
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(T, value = N);
|
||||
@@ -39,8 +46,10 @@ struct integral_c
|
||||
public:
|
||||
typedef integral_c<T, next_value> next;
|
||||
typedef integral_c<T, prior_value> prior;
|
||||
#elif defined(__BORLANDC__) && (__BORLANDC__ <= 0x561 || !defined(BOOST_STRICT_CONFIG)) \
|
||||
|| defined(__IBMCPP__) && (__IBMCPP__ <= 502 || !defined(BOOST_STRICT_CONFIG))
|
||||
#elif !defined(BOOST_STRICT_CONFIG) \
|
||||
&& (defined(__BORLANDC__) && __BORLANDC__ <= 0x561 \
|
||||
|| defined(__IBMCPP__) && __IBMCPP__ <= 502 \
|
||||
|| defined(__HP_aCC) && __HP_aCC <= 33900)
|
||||
typedef integral_c<T, (N + 1)> next;
|
||||
typedef integral_c<T, (N - 1)> prior;
|
||||
#else
|
||||
|
Reference in New Issue
Block a user