diff --git a/src/type_info.cpp b/src/type_info.cpp index a3203cce5753b94b45e282553191a85adbea160a..98e1e44fce9f4edfb8bd476317203120a98d27f6 100644 --- a/src/type_info.cpp +++ b/src/type_info.cpp @@ -31,7 +31,13 @@ void exposeStdTypeIndex() { "Returns an implementation defined null-terminated character string " "containing the name of the type. No guarantees are given; in " "particular, the returned string can be identical for several types " - "and change between invocations of the same program."); + "and change between invocations of the same program.") + .def( + "pretty_name", + +[](const Self &value) -> std::string { + return boost::core::demangle(value.name()); + }, + bp::arg("self"), "Human readible name."); } void exposeBoostTypeIndex() {