Boost logo

Boost :

Subject: Re: [boost] noexcept BOOST_EXPLICIT_OPERATOR_BOOL
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-04-26 06:42:40


On Friday 25 April 2014 23:14:54 Andrzej Krzemienski wrote:
> 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.
> >
> Does it make sense then to add yet another macro?
> (BOOST_NOEXCEPT_EXPLICIT_OPERATOR_BOOL)

A new macro sounds reasonable.


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