[Issue 15869] RVO can overwrite argument

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 5 14:05:20 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15869

--- Comment #4 from Yuxuan Shui <yshuiv7 at gmail.com> ---
Looks like if clobber is not called in constructor, the return value is stored
into a temporary variable and then copied into xx using Set.opAssign.

I'm not sure if this is correct since Set has disabled this(this).

--


More information about the Digitalmars-d-bugs mailing list