|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2004-09-18 23:04:47
"David B. Held" <dheld_at_[hidden]> wrote in message
news:cihmvu$3ik$1_at_sea.gmane.org...
> #include <boost/static_assert.hpp>
>
> template <typename T>
> struct foo
> {
> void bar(void)
> {
> BOOST_STATIC_ASSERT(false);
> }
> };
I use
....
BOOST_STATIC_ASSERT(sizeof(T) == 0);
....
Robert Ramey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk