|
Boost : |
From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2003-01-09 16:07:29
----- Original Message -----
From: "Terje Slettebø" <tslettebo_at_[hidden]>
> > You can just do this as well:
> >
> > BOOST_STATIC_ASSERT(
> > ( boost::is_same<T, bool>::value ) ||
> > ( boost::is_same<T, int>::value ) ||
> > ( boost::is_same<T, double>::value ) ||
> > ( boost::is_same<T, std::string>::value );
> > )
> >
> > In other words, just parenthesize the expressions.
>
> Or even just the macro parameter:
>
> BOOST_STATIC_ASSERT((\
> boost::is_same<T, bool>::value ||\
> boost::is_same<T, int>::value ||\
> boost::is_same<T, double>::value ||\
> boost::is_same<T, std::string>::value ));
Yeah, duh. ;) You don't need the backslashes though.
Paul Mensonides
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk