DIP 1018--The Copy Constructor--Final Review
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Mar 5 15:39:09 UTC 2019
On 3/2/19 7:55 AM, Atila Neves wrote:
> On Friday, 1 March 2019 at 13:59:41 UTC, Olivier FAURE wrote:
>> On Thursday, 28 February 2019 at 10:44:36 UTC, Mike Parker wrote:
>>> [...]
>>
>> So, the big point of contention seems to be the possibility that
>> structs have copy constructors taking non-const arguments.
>>
>> [...]
>
> The copy constructor doesn't *have* to take a ref to mutable. It can be
> ref const(T). It just doesn't force it.
Correctamundo. (Also the case in C++.)
More information about the Digitalmars-d
mailing list