Boost logo

Boost Users :

From: Thomas S. Urban (scottu_at_[hidden])
Date: 2004-10-14 20:18:25


On Thu, Oct 14, 2004 at 11:20:25, John Maddock spake thusly:
...
> template<class T> struct foo
> {
> foo (int) { }
> private:
> BOOST_STATIC_ASSERT (sizeof(T) == 0);
> };
>
> although there is still some question as to whether a "sufficiently clever"
> compiler could regard this as ill formed as well :-( Fortunately none do
> at present.

Thanks, this works fine on the two I'm using.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net