Subject: Re: [boost] BOOST_NOEXCEPT macro?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-02-17 12:48:40
On Thu, Feb 17, 2011 at 8:12 AM, John Maddock <boost.regex_at_[hidden]> 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()
>> # define BOOST_NOEXCEPT noexcept
Actually, we need two macros. While the about may still be useful, the
most common use is going to be:
# define BOOST_NOEXCEPT
# define BOOST_NOEXCEPT noexcept
See lots of examples in the current working paper:
> I assume this is a new C++0x feature? I haven't come across this one
Yep. From Doug Gregor. See
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
Let me come back with a firmer proposal.