Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-29 07:40:29


From: "John Maddock" <jm_at_[hidden]>
> > This fix should be easy:
> >
> >
>
BOOST_CHECK_INTEGRAL_CONSTANT(static_cast<bool>(::tt::has_trivial_constructo
> r<bool>::value),
> > true);
>
> That's seriously ugly, IMO the test program uses type traits as they are
> meant to be used: as template arguments, and enum values can certainly be
> used in non-type template arguments, even if the enum itself is anonymous
> IMO.

Enum values can, but the unnamed enum type itself cannot be used as a
template argument.


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