Boost logo

Boost :

From: Michiel Salters (michiel.salters_at_[hidden])
Date: 2004-06-24 10:33:19


Would
BOOST_STATIC_ASSERT( (T*) 0 )
work for you ?

Regards,
Michiel Salters.

> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]]On Behalf Of Robert Ramey
> Sent: donderdag 3 juni 2004 22:29
> To: boost_at_[hidden]
> Subject: [boost] (no subject)
>
>
> BOOST_STATIC_ASSERT -
>
> On occasion I find it convenient to use:
>
> BOOST_STATIC_ASSERT(false)
>
> In templated code that should be unreachable. However, its
> doesn't work
> with compilers that are too smart for their own good. In
> order to make this
> work I need something like:
>
> BOOST_STATIC_ASSERT(boost::false_<T>::value)
>
> Where boost::false<T> is a type that yields false for any type T.
>
> Am I correct here? Where should such a code snippet be
> placed? Could it be
> added to mpl, type_trait or what?
>
> Robert Ramey
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


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