Subject: Re: [boost] noexcept BOOST_EXPLICIT_OPERATOR_BOOL
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-04-25 16:23:57
On Friday 25 April 2014 20:21:03 Andrzej Krzemienski wrote:
> 2014-04-25 17:15 GMT+02:00 Andrey Semashev <andrey.semashev_at_[hidden]>:
> > I think, noexcept could be added to the existing macros rather safely
> > using
> > BOOST_NOEXCEPT_IF/BOOST_NOEXCEPT_EXPR. I could do it if no one objects.
> Yes, make it noexcept if operator! is noexcept. That couldn't possibly hurt
Hmm, I forgot that the noexcept argument requires the enclosing class type. I
cannot use 'this' to deduce the type, so it seems to be not possible to
implement with the current interface. The good news is that the constexpr
version is implicitly noexcept already.