>From: "David B. Held" <[EMAIL PROTECTED]> > "Paul Mensonides" <[EMAIL PROTECTED]> wrote in message > 000901c2b823$1e7f4aa0$8c00a8c0@c161550b">news:000901c2b823$1e7f4aa0$8c00a8c0@c161550b... > From: "Terje Slettebų" <[EMAIL PROTECTED]> > > > [...] > > BOOST_STATIC_ASSERT((\ > > boost::is_same<T, bool>::value ||\ > > boost::is_same<T, int>::value ||\ > > boost::is_same<T, double>::value ||\ > > boost::is_same<T, std::string>::value )); > > And this is still bulkier and less elegant than the two-line MPL solution. > ;)
I agree. I had actually missed Dave Abrahams (lastname used, as there's a lot of Dave's here. :) ) solution, but I found it, now. I think was an elegant way of doing it. And, yeah, I didn't think of that you don't need backslashes when _calling_ a macro, only when defining it. Regards, Terje _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost