Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-05-21 06:09:24


> I've tried to use static_assert.hpp with most confusing results.
>
> example_3 seems to fail to compile.
>
> BOOST_STATIC_ASSERT((std::numeric_limits<UnsignedInt>::is_specialized
> && std::numeric_limits<UnsignedInt>::is_integer
> && !std::numeric_limits<UnsignedInt>::is_signed));
>
> and yet some individual parts compile (and thus assert correctly)
>
> Some additions from my attempts to understand the problem.
>
> Suggestions?

Pretty much none at all, there seems to be a specific problem with VC6/7 and
numeric_limits used in static_assert's, use of type_traits equivalents
(where available) does seem to work. This really is weird :-(

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk