mirror of
https://github.com/boostorg/static_assert.git
synced 2025-07-25 18:27:25 +02:00
add special version for SGI MIPSpro compiler
[SVN r18173]
This commit is contained in:
@ -72,6 +72,15 @@ template<int x> struct static_assert_test{};
|
|||||||
# define BOOST_STATIC_ASSERT( B ) \
|
# define BOOST_STATIC_ASSERT( B ) \
|
||||||
typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \
|
typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \
|
||||||
[ ::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >::value ]
|
[ ::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >::value ]
|
||||||
|
#elif defined(__sgi)
|
||||||
|
// special version for SGI MIPSpro compiler
|
||||||
|
#define BOOST_STATIC_ASSERT( B ) \
|
||||||
|
BOOST_STATIC_CONSTANT(bool, \
|
||||||
|
BOOST_JOIN(boost_static_assert_test_, __LINE__) = ( B )); \
|
||||||
|
typedef ::boost::static_assert_test<\
|
||||||
|
sizeof(::boost::STATIC_ASSERTION_FAILURE< \
|
||||||
|
BOOST_JOIN(boost_static_assert_test_, __LINE__) >)>\
|
||||||
|
BOOST_JOIN(boost_static_assert_typedef_, __LINE__)
|
||||||
#else
|
#else
|
||||||
// generic version
|
// generic version
|
||||||
#define BOOST_STATIC_ASSERT( B ) \
|
#define BOOST_STATIC_ASSERT( B ) \
|
||||||
|
Reference in New Issue
Block a user