Cheers,
Matt.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
You don't give any reference to the article and I'm not going to
search for it but the unnecessary copy elimination in C++0x probably
refers to rvalue references (like: x&& ) which allow you to implement
copying like swap or like assignment of auto_ptr - i.e. you can
'steal' the content of the source rather than making a new copy.
http://en.wikipedia.org/wiki/C%2B%2B0x#Rvalue_reference_and_move_semantics
Sorry, Article was titled 'Move Constructors'. At http://www.ddj.com/cpp/184403855.
That is indeed very old.
Forget it.
Move constructors can now be done with rvalue references as I
indicated.
They are implemented in g++ and in visual studio 2010.
A good series of articles on this subject by Dave Abrahams (start at the
bottom):
http://cpp-next.com/archive/category/value-semantics/
--
Max