C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::elide

From: Gašper Ažman <gasper.azman_at_[hidden]>
Date: Fri, 31 May 2024 16:26:14 +0100
Ville,

shhhh, you'll discourage them giving _conv a nice name ;)

G

On Fri, May 31, 2024 at 4:24 PM Ville Voutilainen
<ville.voutilainen_at_[hidden]> wrote:
>
> 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:26:27