Boost logo

Boost :

Subject: Re: [boost] Noexcept
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2017-06-14 06:31:17


On Tue, Jun 13, 2017 at 5:29 PM, Emil Dotchevski <emildotchevski_at_[hidden]>
wrote:

> if( auto tr=try_(....) ) {
> //ok good, do work then return a "good" value
> } else {
> log(BOOST_DIAGNOSTIC_INFORMATION(*tr.catch_<>()));
> return throw_();
> }
>
> Except it won't work, you've uncovered an omission in the Noexcept API.
> The problem is that catch_<> will flag the error as handled, and in this
> case you don't want that.
>

This is now fixed: even if you handle an error with catch_<>(), throw_()
will "unhandle" it.


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