Comment #4 on issue 2149 by [email protected]: STATIC_ASSERT fails to compile
with GCC 4.8 due to -Werror=unused-local-typedefs
http://code.google.com/p/v8/issues/detail?id=2149
Regarding Boost, using the following works (using Boost 1.49.0):
#include <boost/static_assert.hpp>
void foo() {
BOOST_STATIC_ASSERT(5 >= 0);
BOOST_STATIC_ASSERT(-5 >= 0);
}
test.cc:4:4: error: static assertion failed: -5 >= 0
BOOST_STATIC_ASSERT(-5 >= 0);
(At least when compiling with -std=c++0x instead of the default
-std=gnu++98; with the latter one gets an error "invalid application of
‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’".)
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev