From 4160fc42d8f48786425a97406c00c0899025230b Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Wed, 6 Nov 2019 14:04:29 +0100 Subject: [PATCH] for better backwards compatibility add retain function which does nothing to property manager --- src/OpenMesh/Core/Utils/PropertyManager.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/OpenMesh/Core/Utils/PropertyManager.hh b/src/OpenMesh/Core/Utils/PropertyManager.hh index 2053b645..fabb4118 100644 --- a/src/OpenMesh/Core/Utils/PropertyManager.hh +++ b/src/OpenMesh/Core/Utils/PropertyManager.hh @@ -299,6 +299,15 @@ class PropertyManager { const MeshT& getMesh() const { return dynamic_cast(mesh_); } + + /** + * @deprecated This method no longer has any effect. Instead, named properties are always retained, while unnamed ones are not + * + * Tells the PropertyManager whether lifetime should be managed or not. + */ + OM_DEPRECATED("retain no longer has any effect. Instead, named properties are always retained, while unnamed ones are not.") + void retain(bool = true) {} + /** * Move constructor. Transfers ownership (delete responsibility). */