]> git.tdb.fi Git - libs/core.git/blob - source/core/variant.cpp
Move non-oneliner functions out of RefPtr class declaration
[libs/core.git] / source / core / variant.cpp
1 #include <msp/debug/demangle.h>
2 #include <msp/strings/format.h>
3 #include "variant.h"
4
5 using namespace std;
6
7 namespace Msp {
8
9 type_mismatch::type_mismatch(const type_info &e, const type_info &a):
10         runtime_error(format("expected: %s\nactual: %s", Debug::demangle(e.name()), Debug::demangle(a.name())))
11 { }
12
13 }