
24 Aug
2009
24 Aug
'09
7:25 a.m.
Thomas Klimpel escribió:
So my position is that the user better be prepared to expect that "a = boost::move(b); " can be implemented as "a.swap(b)", because move assignment is about efficiency, and a.swap(b) is often the most efficient implementation of move assignment.
Some additional discussion can be found in this thread: http://lists.boost.org/Archives/boost/2007/04/119872.php I was also against clear(), but somehow people convinced me and I added clear() to my classes ;-) Best, Ion