[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 29 08:05:51 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9218
--- Comment #7 from siegelords_abode at yahoo.com 2012-12-29 08:05:49 PST ---
I worked around this for now by adding this overload:
int opCmp(const A a) const
{
return opCmp(a);
}
This seems to work because the compiler prefers the const ref version to the
const version.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list