[Issue 12537] Templatizing opEquals results in infinite recursion in the compiler
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jan 4 18:27:49 PST 2015
https://issues.dlang.org/show_bug.cgi?id=12537
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ag0aep6g at gmail.com
--- Comment #2 from ag0aep6g at gmail.com ---
Here's a goofy workaround that seems to work. Change
return opEquals(cast()lhs, cast()rhs);
to
import core.internal.traits : Unqual;
return opEquals(* cast(Unqual!T*) &lhs, * cast(Unqual!U*) &rhs);
--
More information about the Digitalmars-d-bugs
mailing list