X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;fp=source%2Fcore%2Fvariant.h;h=1ad086e70381254422d92330e277b7fd43f4826d;hp=05a8139c679783000f9e56d65ae6674029931d49;hb=99b9121e2158603372c7313400283b622e6754d8;hpb=30ce69b5cb05712c3a4903b0f397912119c4f1f9 diff --git a/source/core/variant.h b/source/core/variant.h index 05a8139..1ad086e 100644 --- a/source/core/variant.h +++ b/source/core/variant.h @@ -12,7 +12,7 @@ class type_mismatch: public std::runtime_error { public: type_mismatch(const std::type_info &, const std::type_info &); - ~type_mismatch() throw() { } + virtual ~type_mismatch() throw() = default; }; @@ -53,7 +53,7 @@ private: StoreBase *store = 0; public: - Variant() { } + Variant() = default; template Variant(const T &v): store(new Store::type>(v)) { } Variant(const Variant &v): store(v.store ? v.store->clone() : 0) { }