Commit 10bcfd50 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Added PropertyManager::move to C++11 branch.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1096 fdac6126-5c0c-442c-9429-916003d36597
parent 93fa1360
......@@ -184,6 +184,13 @@ class PropertyManager {
return std::move(pm);
}
/**
* Included for backwards compatibility with non-C++11 version.
*/
PropertyManager move() {
return std::move(*this);
}
#else
class Proxy {
private:
......@@ -204,6 +211,10 @@ class PropertyManager {
return p;
}
Proxy move() {
return (Proxy)*this;
}
PropertyManager(Proxy p) : mesh_(p.mesh_), prop_(p.prop_), retain_(p.retain_), name_(p.name_) {}
PropertyManager &operator=(Proxy p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment