C++ Logo

std-proposals

Advanced search

D2190R0 Proposal of Designated Constructor Parameters (DRAFT 1)

From: Andrew Tomazos <andrewtomazos_at_[hidden]>
Date: Wed, 17 Jun 2020 09:57:57 +1000
Please find attached:

    D2190R0 Proposal of Designated Constructor Parameters (DRAFT 1)

    Abstract: We propose designated constructor parameters. They are
constructor parameters that correspond directly to data members. As such,
a designated constructor parameter implicitly initializes their
corresponding data member, and arguments to them can be given with
designated initializer syntax. (Today designated initializer syntax can
only be used with aggregate types.)

Feedback appreciated.

Regards,
Andrew.

Received on 2020-06-16 19:01:21