From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-06-02 13:38:17
Alexander Grund wrote:
> With an API like `result<Foo> do() noexcept` instead of `Foo do()` you
> won't get (N)RVO when you return a `Foo` (in the happy case) as the
> standard only allows it when the types are exactly the same.
This doesn't matter much nowadays. E.g. in https://godbolt.org/z/zC-Cah if
you remove x.f(), x goes away.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk