Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2004-09-18 17:35:09


Jonathan Turkanis wrote:
> [...]
> namespace boost { namespace detail {
> template<class Dummy> struct always_false
> {
> enum { value = 0 };
> };
> } } // namespace
>
> #define BOOST_STATIC_ASSERT_FALSE(x) \
> BOOST_STATIC_ASSERT(::boost::detail::always_false< x >::value);

Beautiful. So who volunteers to put it somewhere appropriate?

> Of course we could also use:
>
> #define BOOST_STATIC_ASSERT_FALSE(x) \
> BOOST_STATIC_ASSERT((mpl::apply<mpl::always<mpl::false_>, x>::value));
>
> but that seems like overkill.

Hahahaha! If we have to resort to apply<>, we've definitely gone too
far. Of course, someone will come up with a use case where apply<>
should be used, and then I'll have to eat my words. :(

Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk