http://d.puremagic.com/issues/show_bug.cgi?id=9238
--- Comment #3 from Andrej Mitrovic <[email protected]> 2012-12-29 07:37:52 PST --- (In reply to comment #2) > (In reply to comment #1) > > Does it really block Issue 9218? We've had a discussion in the forums > > recently > > to make `auto ref` a non-template by making the compiler convert this call: > > > auto b = S() > S(); // assume S has 'int opCmp(const ref A a) const' > > I think I meant: int opCmp()(const auto ref A a) Argh, this: int opCmp(const auto ref A a) Essentially it isn't a template, but special enough that the compiler converts literals into hidden lvalues which it passes to the function. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
