Commit 96fb20fd authored by Max Lyon's avatar Max Lyon
Browse files

for better backwards compatibility add second template parameter to...

for better backwards compatibility add second template parameter to makePropertyManagerFromExisting(orNew)
parent 4160fc42
......@@ -818,11 +818,11 @@ PropertyManager<PROPTYPE> makePropertyManagerFromNew(PolyConnectivity &mesh, con
* @throws std::runtime_error if no property with the name \p propname of
* matching type exists.
*/
template<typename PROPTYPE>
template<typename PROPTYPE, typename MeshT = int>
OM_DEPRECATED("Use getProperty instead.")
PropertyManager<PROPTYPE> makePropertyManagerFromExisting(PolyConnectivity &mesh, const char *propname)
PropertyManager<PROPTYPE, MeshT> makePropertyManagerFromExisting(PolyConnectivity &mesh, const char *propname)
{
return PropertyManager<PROPTYPE>(mesh, propname, true);
return PropertyManager<PROPTYPE, MeshT>(mesh, propname, true);
}
/** @relates PropertyManager
......@@ -833,11 +833,11 @@ PropertyManager<PROPTYPE> makePropertyManagerFromExisting(PolyConnectivity &mesh
*
* Intended for creating or accessing persistent properties.
*/
template<typename PROPTYPE>
template<typename PROPTYPE, typename MeshT = int>
OM_DEPRECATED("Use getOrMakeProperty instead.")
PropertyManager<PROPTYPE> makePropertyManagerFromExistingOrNew(PolyConnectivity &mesh, const char *propname)
PropertyManager<PROPTYPE, MeshT> makePropertyManagerFromExistingOrNew(PolyConnectivity &mesh, const char *propname)
{
return PropertyManager<PROPTYPE>::createIfNotExists(mesh, propname);
return PropertyManager<PROPTYPE, MeshT>::createIfNotExists(mesh, propname);
}
/** @relates PropertyManager
......
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