Boost logo

Boost :

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 if
you remove x.f(), x goes away.

Boost list run by bdawes at, gregod at, cpdaniel at, john at