X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmaputils.cpp;h=28739f05ca86c59a3419e3d1f1f2dfe6c93539b7;hb=b2333b53a0434eb6a131000c0b9bf06e4f603bd6;hp=4fcc8e2176769832b02f9d301810e1fd078fd9e0;hpb=9519381422961a538a3ebbd1e6563d170215f14e;p=libs%2Fcore.git diff --git a/source/core/maputils.cpp b/source/core/maputils.cpp index 4fcc8e2..28739f0 100644 --- a/source/core/maputils.cpp +++ b/source/core/maputils.cpp @@ -1,12 +1,14 @@ #include +#include #include "maputils.h" using namespace std; namespace Msp { -key_error::key_error(const type_info &t): - runtime_error(Debug::demangle(t.name())) -{ } +string key_error::make_what(const type_info &type, const string &value) +{ + return format("%s(%s)", Debug::demangle(type.name()), value); +} } // namespace Msp