]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/variant.h
Mark constructors and destructors as default where appropriate
[libs/core.git] / source / core / variant.h
index 05a8139c679783000f9e56d65ae6674029931d49..1ad086e70381254422d92330e277b7fd43f4826d 100644 (file)
@@ -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<typename T>
        Variant(const T &v): store(new Store<typename std::remove_cv<T>::type>(v)) { }
        Variant(const Variant &v): store(v.store ? v.store->clone() : 0) { }