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