Re:C++: Return value optimization vs. std::move
by plorkyeran on Monday July 20, 2015 @12:21PM
(#9917085)
There's never a place where RVO could occur where `return std::move(...)` is a sensible thing to write, so it's not actually a problem in practice. If you're returning a local you don't have to explicitly move from it, and if you're returning a global or member variable RVO can't occur.
[ Parent
| on HN ]
There are no comments on this comment yet.