Commit b4c944c3 authored by T.J. Corona's avatar T.J. Corona

WIP: example for deprecating methods using C++14's deprecated attribute

parent 06249e16
Pipeline #135960 running with stage
......@@ -220,10 +220,14 @@ public:
T associatedObjects() const;
bool associate(smtk::resource::PersistentObjectPtr obj);
[[deprecated("This method implicitly requires an associated model resource")]]
bool associateEntity(const smtk::common::UUID& entity);
[[deprecated]]
bool associateEntity(const smtk::model::EntityRef& entity);
[[deprecated]]
void disassociateEntity(const smtk::common::UUID& entity, bool reverse = true);
[[deprecated]]
void disassociateEntity(const smtk::model::EntityRef& entity, bool reverse = true);
/// Disassociate attribute from an object. Returns true if successful, else
/// it will set probAtt to attribute using this as a prerequisite
......
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