Boost logo

Boost :

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:
>> # 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:

# 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
> before!

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
> boost/config/suffix.hpp.

Let me come back with a firmer proposal.


Boost list run by bdawes at, gregod at, cpdaniel at, john at