Jump to content
Posted 07 November 2012 - 02:04 PM
Posted 07 November 2012 - 02:14 PM
Posted 07 November 2012 - 02:19 PM
Edited by Servant of the Lord, 07 November 2012 - 02:21 PM.
Posted 07 November 2012 - 02:20 PM
Posted 07 November 2012 - 03:42 PM
Edited by Zlodo, 07 November 2012 - 03:43 PM.
Posted 07 November 2012 - 04:50 PM
Nothing happens to the object itself when it is moved. It is not the object that is moved, but it is the object's resources that have changed owners. So it is up to the move constructors/operators to ensure that the resources are transferred properly and that the object on the right hand side is still valid, although empty since its resources have been transferred to another object.
(btw I don't remember what the standard says about the state of an object after it has been moved, iirc it's just up to the move constructor or move operator to make sure the object is in a state where its destructor won't blow up once it goes out of scope)
Edited by Brother Bob, 07 November 2012 - 04:51 PM.
Posted 07 November 2012 - 05:51 PM
Posted 07 November 2012 - 08:07 PM
cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.
v1.5.5 was released. Now supports tween and timeline for ease animation.