[Issue 17456] [REG2.075a] spurious lifetime diagnostic on delegates

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 30 15:20:04 PDT 2017


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

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com

--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to b2.temp from comment #3)
> Now what if i add
> 
>     @disable this(this);
>     @disable void opAssign(Foo);
> 
> And everything that disable value move ?
> It seems that the error is still emitted, right ?

move and swap (from std.algorithm.mutation) will still work with such a struct.

--


More information about the Digitalmars-d-bugs mailing list