
29 Aug
2011
29 Aug
'11
1:04 p.m.
2011/8/27 Dave Abrahams
No, it's the easiest way to get move assignment semantically correct, but not "the preferred way." At least, it's not universally preferred. See http://cpp-next.com/archive/2009/09/your-next-assignment/
Thanks, great read! I am still trying to fully understand all implications of move semantics. For example: is std/boost::move() killer of potential RVO? I mean: std::vector<int> getNumbers() { std::vector<int> ret; // fill data return move(ret) // will that kill potential (N)RVO? } Regards, Szymon