C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Making tuple an aggregate

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 7 Jun 2022 22:26:13 +0300
On Tue, 7 Jun 2022 at 19:55, Phil Endecott via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> Dear Experts,
>
> Today I have been frustrated by std::tuple not being an aggregate.
> I have some non-moveable types and it is difficult to use them
> with tuples.

Stash optionals of your non-movable type into your tuple. Then emplace
into them.

Received on 2022-06-07 19:26:26