[Issue 11591] `std.typecons.Tuple`-s with classes fails at runtime as associative array keys

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 31 14:53:27 PST 2013


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



--- Comment #3 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2014-01-01 02:53:25 MSK ---
(In reply to comment #2)
> This comes about because std.typecons.Tuple generates a struct but does not
> generate an opCmp operator overload function for it. Actually, it does build an
> opCmp, but as a template, whereas in clone.c buildXopCmp() looks for a function
> named opCmp, not a template.

Actually there is no problem with the fact it's a template here IIRC. The
problem is the template (a `const` overload) can't be instantiated.

-- 
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