Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-10-03 07:06:48


> 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.


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