full copies on assignment
John Nixon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 26 03:51:30 PDT 2016
On Wednesday, 25 May 2016 at 15:44:34 UTC, Marc Schütz wrote:
> On Tuesday, 24 May 2016 at 20:58:11 UTC, John Nixon wrote:
>> On Tuesday, 24 May 2016 at 15:17:37 UTC, Adam D. Ruppe wrote:
>>> On Tuesday, 24 May 2016 at 14:29:53 UTC, John Nixon wrote:
> Or add an explicit constructor:
>
> struct CS {
> // ...
> this(const CS rhs) { this = rhs; }
Unfortunately this results in "Error: cannot implicitly convert
expression (rhs) of type const(CS) to CS'.
More information about the Digitalmars-d-learn
mailing list