
18 Sep
2004
18 Sep
'04
8:03 p.m.
Jonathan Turkanis wrote:
[...] Apparently gcc is right. See http://lists.boost.org/MailArchives/boost/msg06980.php.
The suggested workaround (maybe that's the wrong term, if it's not a bug) is:
template<class T> struct always_false { enum { value = 0 }; };
template <typename T> struct foo { void bar(void) { BOOST_STATIC_ASSERT(always_false<T>::value); } };
Ok, thanks. Should the always_false<> template get added somewhere permanent, or should we have a special case like BOOST_STATIC_ASSERT_FALSE? Dave