Boost logo

Boost Users :

From: Erik (esigra_at_[hidden])
Date: 2008-03-19 06:33:10


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net