On 7/11/2011 12:16 PM, dsimcha wrote:
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?

That can produce a lot of hidden overhead, pretty much wrecking the advantages of pass by value.
            • ... Andrej Mitrovic
  • ... Stephan
    • ... Walter Bright
      • ... Michel Fortin
        • ... bearophile
  • ... dsimcha
    • ... Walter Bright
      • ... dsimcha
        • ... Walter Bright
          • ... dsimcha
            • ... Walter Bright
  • ... Trass3r
  • ... М и х а и л С т р а ш у н
    • ... Trass3r
    • ... Walter Bright
      • ... Andrej Mitrovic
      • ... Extrawurst

Reply via email to