Boost logo

Boost :

Subject: Re: [boost] [c++1] BOOST_NOEXCEPT macros?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2011-10-10 04:36:51


Den 09-10-2011 03:11, Dave Abrahams skrev:
>
> on Sat Oct 08 2011, Beman Dawes<bdawes-AT-acm.org> wrote:
>
>> Since Boost already has BOOST_NO_NOEXCEPT and at least one compiler
>> (GCC) supports C++11 noexcept, I'd like to start using it in Boost
>> code.
>>
>> So how about a<boost/detail/noexcept.hpp> header with the usual
>> boilerplate and this:
>>
>> #ifndef BOOST_NO_NOEXCEPT
>> # define BOOST_NOEXCEPT
>> # define BOOST_NOEXCEPT_IF(Predicate)

[snip]

> I think it had better default to false; that would be the conservative
> answer.
>
> And the parameter is "Expression," I think.
>
> I suggest BOOST_IS_NOEXCEPT(Expression)

I prefer BOOST_NOEXCEPT_IF() like Beman suggested.

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk