pfi/pficommon — pull request #8 by pepshiso (2011-12-08 11:17:36+00:00)
Title: Added pfi.lang.demangle

Added demangle utility for future pfi.lang.json's error messages.

Example:

struct foo {
virtual ~foo() {}
};
struct bar : foo {};

bar b;
foo& f(b);

using namespace pfi::lang;
get_tyepname(); // foo
get_static_typename(f) // foo
get_dynamic_typename(f) // bar
demangle(typeid(f).name()) // bar