3 Oct
2005
3 Oct
'05
12:06 p.m.
error: invalid application of sizeof to incomplete type boost::STATIC_ASSERTION_FAILURE<false>
Boost 1.32.0 g++ 4.0.1
Obviously generating a compiler error is the correct behaviour, I want to make sure that only complex or float type objects are instantiated. The problem is that the compiler error is rather cryptic.
From the documentation of boost http://www.boost.org/doc/html/boost_staticassert.html, I should be seeing
Illegal use of STATIC_ASSERTION_FAILURE<false>
Is there any way this can be improved by generating the error or is it too much of a compiler issue?
Sigh... It's very compiler specific I'm afraid, we can STATIC_ASSERTION_FAILURE into the message but that's about it at present. John.