Boost logo

Boost :

Subject: Re: [boost] [review] Review of Outcome v2 (Fri-19-Jan to Sun-28-Jan, 2018)
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2018-02-01 07:13:43


On Wed, Jan 31, 2018 at 11:01 PM, Jonathan Müller <
jonathanmueller.dev_at_[hidden]> wrote:

> Yeah but you can write stupid code with anything:
>
> ```
> std::unique_ptr<A> a;
> try
> {
> a =A::create();
> }
> catch (...) {}
> a->foo(); // ups
> ```
>
>
I can optimize this:

std::unique_ptr<A> a;
a->foo();

:)


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