diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-20 19:50:29 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-08-20 19:50:29 +0100 |
commit | 4a532e5ae61e195161171092fdfe09b97459944a (patch) | |
tree | 8497e2b396ab8bde670000b2da94dfc41abc60f4 | |
parent | Fix compilation with template auto and + operator (diff) | |
download | libadhocutil-4a532e5ae61e195161171092fdfe09b97459944a.tar.bz2 libadhocutil-4a532e5ae61e195161171092fdfe09b97459944a.tar.xz libadhocutil-4a532e5ae61e195161171092fdfe09b97459944a.zip |
Add missing virtual destructors
-rw-r--r-- | libadhocutil/cache.h | 1 | ||||
-rw-r--r-- | libadhocutil/nvpParse.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libadhocutil/cache.h b/libadhocutil/cache.h index 14f803d..66b4a7c 100644 --- a/libadhocutil/cache.h +++ b/libadhocutil/cache.h @@ -19,6 +19,7 @@ class DLL_PUBLIC Cacheable { public: typedef const std::shared_ptr<const T> Value; Cacheable(const K & k, time_t validUntil); + virtual ~Cacheable() = default; const K key; const time_t validUntil; diff --git a/libadhocutil/nvpParse.h b/libadhocutil/nvpParse.h index 2a3eba9..ce851a6 100644 --- a/libadhocutil/nvpParse.h +++ b/libadhocutil/nvpParse.h @@ -36,6 +36,7 @@ class NvpParse : public yyFlexLexer { template <typename T> class TargetBase { public: + virtual ~TargetBase() = default; virtual AssignFunc assign(T *) const = 0; }; |