We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9b3b5 commit 42b309fCopy full SHA for 42b309f
src/type_info.cpp
@@ -31,7 +31,13 @@ void exposeStdTypeIndex() {
31
"Returns an implementation defined null-terminated character string "
32
"containing the name of the type. No guarantees are given; in "
33
"particular, the returned string can be identical for several types "
34
- "and change between invocations of the same program.");
+ "and change between invocations of the same program.")
35
+ .def(
36
+ "pretty_name",
37
+ +[](const Self &value) -> std::string {
38
+ return boost::core::demangle(value.name());
39
+ },
40
+ bp::arg("self"), "Human readible name.");
41
}
42
43
void exposeBoostTypeIndex() {
0 commit comments