7 Sep
2011
7 Sep
'11
3:40 p.m.
2011/9/7 Ion Gaztañaga
El 07/09/2011 0:05, Szymon Gatner escribió:
It's moved, this feature produces the limitation (must define copy-constructor for copyable types owning copyable and movables classes like boost::container::vector) that Daniel has suffered. Example:
It is still not clear to me. What is moved and in under what conditions? Let me clarify me question: will this move or copy: boost::container::vector<int> makeInts() { boost::container::vector<int> ret; //.... return ret; } boost::container::vector<int> ints; ints = makeInts() <========= move or copy? Regards, Simon