workarounds for IRIX CC

[SVN r15776]
This commit is contained in:
Dave Abrahams
2002-10-07 16:25:37 +00:00
parent ed93d8cf02
commit 4b6dd9e7f1
2 changed files with 7 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ template<> struct arg<i>
{ {
typedef BOOST_PP_CAT(U,i) type; typedef BOOST_PP_CAT(U,i) type;
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG)) #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG))
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
#endif #endif
@@ -128,6 +129,7 @@ template<> struct arg<-1>
{ {
typedef U1 type; typedef U1 type;
#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG)) #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x561 && defined(BOOST_STRICT_CONFIG))
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
#endif #endif

View File

@@ -33,6 +33,7 @@ template<> struct arg<1>
struct apply struct apply
{ {
typedef U1 type; typedef U1 type;
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
}; };
@@ -50,6 +51,7 @@ template<> struct arg<2>
struct apply struct apply
{ {
typedef U2 type; typedef U2 type;
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
}; };
@@ -67,6 +69,7 @@ template<> struct arg<3>
struct apply struct apply
{ {
typedef U3 type; typedef U3 type;
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
}; };
@@ -84,6 +87,7 @@ template<> struct arg<4>
struct apply struct apply
{ {
typedef U4 type; typedef U4 type;
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
}; };
@@ -101,6 +105,7 @@ template<> struct arg<5>
struct apply struct apply
{ {
typedef U5 type; typedef U5 type;
private:
BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value); BOOST_STATIC_CONSTANT(bool, nv = !is_void_<type>::value);
BOOST_STATIC_ASSERT(nv); BOOST_STATIC_ASSERT(nv);
}; };