C++ Logo

std-proposals

Advanced search

Re: [std-proposals] readonly specifier

From: Bjorn Reese <breese_at_[hidden]>
Date: Thu, 21 Dec 2023 18:42:19 +0100
On 12/20/23 16:15, Alexander Christensen via Std-Proposals wrote:

> So I write in suggestion for a kind of middle-ground, where readonly is
> less restrictive than const, but more restrictive than unspecified fields.

If the assigment operator "creates" the members, what should the
constructor do? Default-initialize the members? What about type that
are not default-constructible?

Should subsequent assignments fail?

Received on 2023-12-21 17:42:22