[Issue 13179] New: AA key type TagIndex now requires equality rather than comparison
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 21 11:55:32 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13179
Issue ID: 13179
Summary: AA key type TagIndex now requires equality rather than
comparison
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: doob at me.com
Building Tango with 2.066.0-b5 results in the following error:
tango/text/Regex.d(2532): Error: AA key type TagIndex now requires equality
rather than comparison
tango/text/Regex.d(2532): Please define opEquals, or remove opCmp to
also rely on default memberwise comparison.
I can see that opEquals should be used and not opCmp for AA keys, but if opCmp
is defined, why doesn't the compiler automatically generate opEquals that calls
opCmp?
--
More information about the Digitalmars-d-bugs
mailing list