자세한 건...
http://www.justsoftwaresolutions.co.uk/cplusplus/rvalue_references_and_perfect_forwarding.html
링크 내용중 일부
X x;
X& lref = x; // bind lvalue reference to object: fine
X&& rref = x; // bind rvalue reference to object: fine too.
X&& rref2 = lref; // bind rvalue reference to lvalue ref: fine
X& lref2 = X(); // bind lvalue reference to temporary (rvalue): error
X&& rref3 = X(); // bind rvalue reference to temporary (rvalue): fine, extends lifetime of temporary
'Tip' 카테고리의 다른 글
SEH (0) | 2011.03.31 |
---|---|
Set a Thread Name in Native Code (0) | 2010.12.03 |
Remote Debugging (0) | 2010.11.23 |
IsNaN (0) | 2010.11.02 |
Failed to create .NET Frameworks PropertyGrid component (0) | 2010.08.20 |