26 Apr
2013
26 Apr
'13
3:58 p.m.
Thanks for 1) and 3), they've been changed.
2. I think you're not guaranteed to have std::move even if you have rvalue references. If I'm not mistaken, folks on OS X have that situation when they compile with clang and libstdc++ from gcc 4.2. I would suggest using boost::move instead (include boost/move/utility.hpp).
Ok, I can make this change but this makes me wonder can we/should we try to implement move-aware operators which can be used with C++03? I haven't looked too much into boost.move, but they do suggest it's possible to implement move semantics to be portable between C++03/C++11.