== Quote from Walter Bright (newshou...@digitalmars.com)'s article
> On 7/11/2011 10:02 AM, dsimcha wrote:
> > So are there multiple instantiations depending on rvalue vs. not rvalue?
> Yes, it has to be that way. It's the difference between passing T* and T.

Couldn't you just make the calling convention for auto ref functions be to 
always
pass a T* and create a hidden temporary at the call site if passing an rvalue?
          • ... Walter Bright
            • ... Andrej Mitrovic
  • ... Stephan
    • ... Walter Bright
      • ... Michel Fortin
        • ... bearophile
  • ... dsimcha
    • ... Walter Bright
      • ... dsimcha
        • ... Walter Bright
          • ... dsimcha
            • ... Walter Bright
  • ... Trass3r
  • ... М и х а и л С т р а ш у н
    • ... Trass3r
    • ... Walter Bright
      • ... Andrej Mitrovic

Reply via email to