RE: [boost] (no subject)

Would BOOST_STATIC_ASSERT( (T*) 0 ) work for you ? Regards, Michiel Salters.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org]On Behalf Of Robert Ramey Sent: donderdag 3 juni 2004 22:29 To: boost@lists.boost.org 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.
participants (1)
-
Michiel Salters