C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Designated initializers without braces (aka keyword arguments)

From: Andrew Tomazos <andrewtomazos_at_[hidden]>
Date: Wed, 14 Dec 2022 09:53:03 +1100
On Wed, Dec 14, 2022 at 9:13 AM Kyle Knoepfel via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> auto value = value_at(.x=1, .y=2);
>

I think that syntax should be reserved for a future designated arguments
feature. See D2288R0 here:
https://docs.google.com/document/d/14sQA95BVz8F7y-tqXxqXiRENvEusn8MzZgoBXMu4UbI

Received on 2022-12-13 22:53:16