[Issue 12267] [REG 2.065] Using struct as AA key sometimes require opCmp

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 27 12:48:46 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12267



--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-27 22:48:44 EET ---
Well, isn't this interesting.

This compiles:

struct T { int opCmp() { return 2; } }

struct S {}
int[S] aa;


That is, it is enough to add an opCmp to ANY struct to unbreak compilation.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list