C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::elide

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Fri, 31 May 2024 18:24:46 +0300
On Fri, 31 May 2024 at 18:13, Gašper Ažman via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> as an example of immovable types, I suggest operation states from p2300.

And if you read that paper very carefully, you will find a type named
"_conv" in it
(here: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r9.html#example-retry),
and guess what that utility type does?

Allows emplacing a prvalue of an immovable type into a std::optional.
Does that sound familiar to anyone
reading this thread?

Received on 2024-05-31 15:25:00