
On Thu, Feb 17, 2011 at 8:12 AM, John Maddock <boost.regex@virgin.net> wrote:
Should we add a BOOST_NO_NOEXCEPT config macro, and then provide a header with something like:
#ifdef BOOST_NO_NOEXCEPT # define BOOST_NOEXCEPT throw() #else # define BOOST_NOEXCEPT noexcept #endif
Actually, we need two macros. While the about may still be useful, the most common use is going to be: #ifdef BOOST_NO_NOEXCEPT # define BOOST_NOEXCEPT #else # define BOOST_NOEXCEPT noexcept #endif See lots of examples in the current working paper: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3225.pdf
I assume this is a new C++0x feature? I haven't come across this one before!
Yep. From Doug Gregor. See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3051.html Be careful. I think there has been some churn since Doug's original paper.
If so then yes, by all means add this, and the above logic to boost/config/suffix.hpp.
Let me come back with a firmer proposal. --Beman