C++ Logo

STD-PROPOSALS

Advanced search

Subject: [std-proposals] D2190R0 Proposal of Designated Constructor Parameters (DRAFT 1)
From: Andrew Tomazos (andrewtomazos_at_[hidden])
Date: 2020-06-16 18:57:57


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.





STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups