]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/maputils.cpp
Add utility functions for getting an item from an std::map
[libs/core.git] / source / core / maputils.cpp
diff --git a/source/core/maputils.cpp b/source/core/maputils.cpp
new file mode 100644 (file)
index 0000000..4fcc8e2
--- /dev/null
@@ -0,0 +1,12 @@
+#include <msp/debug/demangle.h>
+#include "maputils.h"
+
+using namespace std;
+
+namespace Msp {
+
+key_error::key_error(const type_info &t):
+       runtime_error(Debug::demangle(t.name()))
+{ }
+
+} // namespace Msp