[Issue 9218] [2.061] Correct signature of struct opCmp no longer accepts enum structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 27 14:57:03 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9218


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-27 14:57:01 PST ---
Since it's a struct you can also use:

int opCmp()(auto const ref A a) const

Otherwise I don't think this is a rejects-valid, it's a documentation issue.
Struct literals (manifests included) are no longer lvalues in 2.061, this is by
design.

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