Boost logo

Boost :

Subject: Re: [boost] [review] Review of Outcome v2 (Fri-19-Jan to Sun-28-Jan, 2018)
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2018-02-08 18:42:25


>> What does "not inspected" mean?
>
> Creating a variable and then doing nothing more with it.

Sometimes that's unavoidable e.g. in a stack unwind.

I've agreed to the idea though. Tracked at
https://github.com/ned14/outcome/issues/134.

>> This is what I do in my own code. See
>> https://github.com/ned14/afio/blob/master/include/afio/v2.0/config.hpp#L321.
>> This lets one detect, much more easily and without breaking behaviour
>> semantics, unintentionally uninspected outcome/result.
>
> How does that help since there are no hooks for when value(), error(), etc. are called?

Of course there are hooks for those. Just use a custom policy.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/

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