Boost logo

Boost :

Subject: Re: [boost] noexcept BOOST_EXPLICIT_OPERATOR_BOOL
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2014-04-25 17:14:54


Does it make sense then to add yet another macro?
(BOOST_NOEXCEPT_EXPLICIT_OPERATOR_BOOL)

2014-04-25 22:23 GMT+02:00 Andrey Semashev <andrey.semashev_at_[hidden]>:

> 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
> > anyone.
>
> 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.
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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