
30 Jun
2012
30 Jun
'12
6:16 p.m.
AMDG On 06/30/2012 11:08 AM, John Maddock wrote:
The safe solution is returning Number, not Number&&. If Dave reads this message, he can probably point us to previous discussions about this. Being able to return Number&& would be great...
Can you explain why it's unsafe given that we know that the value returned is an rvalue ref already?
I'm guessing that it has something to do with temporary lifetimes? In Christ, Steven Watanabe