[Issue 9238] Support rvalue references

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 29 07:37:52 PST 2012


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list