[Issue 2984] Failure to find front/back/popBack/popFront/etc should fall back to opApply

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 16 07:47:15 PST 2009


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



--- Comment #4 from Koroskin Denis <2korden at gmail.com> 2009-11-16 07:47:14 PST ---
Well, yes. It is a regression in a sense that the code used to compile but it
doesn't anymore. It sees a front(), back() and empty() methods in my Vector
struct (which is designed after std::vector and thus has similar members) and
mistakenly assumes it is a range (and it's not).

The language change shouldn't have caused this compilation error, be it
implemented more correct, that's why I marked it as a regression :)

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