19 Mar
2008
19 Mar
'08
10:33 a.m.
John Maddock skrev:
John Maddock wrote:
I'll have another look at this when I have a chance.
Following this up: our regression tests fail with gcc-4.1.0 on Suse Linux when I insert an explicit static_cast in there :-(
So unless someone has an alternative fix, I'm stumped at present...
How about something like this: #if __SOME_BROKEN_PLATFORM__ #define BOOST_STATIC_ASSERT whatever workaround is needed #elsif __SOME_OTHER_BROKEN_PLATFORM__ #define BOOST_STATIC_ASSERT whatever workaround is needed . . . #else #define BOOST_STATIC_ASSERT typedef bool STATIC_ASSERT_FAILURE[(x) ? 1 : -1] #endif