
23 Jun
2008
23 Jun
'08
1 a.m.
Beman Dawes wrote:
If BOOST_MPL_ASSERT does a better job, why not just change BOOST_STATIC_ASSERT to be implemented in terms of BOOST_MPL_ASSERT?
Only because 1. There's more than one MPL assertion macro; one should choose the right one in order to get the best results. 2. you need to do a little bit more than write a simple integral constant expression to get really useful error output from the MPL assertions
Also, C++0x static_assert is becoming available in more compilers; should all of the Boost compile-time asserts use C++0x static_assert if available?
Without knowing anything about how good the error messages are that one gets from static_assert, I'd say "probably." -- Dave Abrahams BoostPro Computing http://www.boostpro.com