Boost logo

Boost :

Subject: Re: [boost] Outcome v2
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2017-07-13 18:11:56


On Thu, Jul 13, 2017 at 12:55 AM, Groke, Paul via Boost <
boost_at_[hidden]> wrote:

> > Emil Dotchevski via Boost
> > Sent: Donnerstag, 13. Juli 2017 00:27
> >
> > To clarify the clarification of the clarification, I _am_ interested in
> finding a
> > way to express the equivalent of the Noexcept return throw_() without
> > using TLS, and I don't insist on it being a free function; for example
> it would
> > be sufficient if somehow I could just return r in case of an error, as
> long as it
> > works regardless of what error type r might contain, and of course it
> should
> > be reasonably efficient.
>
> Have you thought about using a type-erased factory - like
> function<exception_ptr()> - as the error type?
>

exception_ptr needs a memory allocation so that's a no-go.


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