]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/maputils.h
Add move semantics to Variant
[libs/core.git] / source / core / maputils.h
index 7eae13471accbff5f67803bb1818af6c78b052f5..9a72d4d30f30e0339bec305b5589dc14e73be9d1 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdexcept>
 #include <typeinfo>
 #include <msp/strings/lexicalcast.h>
+#include "mspcore_api.h"
 
 namespace Msp {
 
@@ -39,7 +40,7 @@ static std::string stringify_key(const T &k)
 
 } // namespace Internal
 
-class key_error: public std::runtime_error
+class MSPCORE_API key_error: public std::runtime_error
 {
 public:
        template<typename T>
@@ -47,7 +48,7 @@ public:
                runtime_error(make_what(typeid(T), MapUtilsInternal::stringify_key(k)))
        { }
 
-       virtual ~key_error() throw() = default;
+       ~key_error() throw() override = default;
 
 private:
        static std::string make_what(const std::type_info &, const std::string &);