
10 Oct
2011
10 Oct
'11
8:36 a.m.
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