15 Oct
2004
15 Oct
'04
1:18 a.m.
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.