diff options
Diffstat (limited to 'src/jsonable.h')
-rw-r--r-- | src/jsonable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsonable.h b/src/jsonable.h index 4be2bec..d6866b8 100644 --- a/src/jsonable.h +++ b/src/jsonable.h @@ -8,6 +8,7 @@ class Jsonable { public: virtual nlohmann::json toJson(void) const = 0; operator nlohmann::json() const {return toJson();} + virtual ~Jsonable() {} }; template<typename T> std::vector<T> json2vec(const nlohmann::json& data) { |