make Destroyable::destroy() optional

This commit is contained in:
Michael Davidsaver
2020-06-03 10:26:37 -07:00
parent 4e85d38bba
commit 598fa1e596

View File

@@ -21,13 +21,13 @@ namespace epics { namespace pvAccess {
/**
* @brief Instance declaring destroy method.
*/
class epicsShareClass Destroyable {
class Destroyable {
public:
POINTER_DEFINITIONS(Destroyable);
/**
* Destroy this instance.
*/
virtual void destroy() = 0;
virtual void destroy() {};
protected:
virtual ~Destroyable() {}