aboutsummaryrefslogtreecommitdiff
path: root/src/jsonable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsonable.h')
-rw-r--r--src/jsonable.h1
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) {