On 17/01/15 16:53 -0800, Tim Shen wrote:
Then "std::move on a pointer definitely doesn't pessimize" is true. Here I read pessimize as "less efficient".
Well without optimization it certainly is less efficient, because you get calls to std::move (just compare the code for foo and bar at http://goo.gl/lTxgBw), but I'm confident even at -O1 they disappear and its nothing to worry about. Anyway, I'll review your new patches tomorrow - thanks.