
26 Sep
2004
26 Sep
'04
10:26 a.m.
BOOST_STATIC_ASSERT doesn't produce a useful error message with gcc 3.3. E.g.:
#include <boost/static_assert.hpp>
BOOST_STATIC_ASSERT(0);
produces
% g++ -c -o bsa.o bsa.cpp bsa.cpp:3: error: invalid application of `sizeof' to an incomplete type
According to <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15337>, this is fixed, but some of use will still be using gcc 3.3 for a while. It turns out the version of BOOST_STATIC_ASSERT used when BOOST_INTEL_CXX_VERSION is defined works for the offending versions of gcc, too:
Good idea, I've tested and committed that as a fix. John.