std::string TypeMirrorImpl::description() const { TypeInfo info = this->class_type.get_info(); string system = info.system; string name = this->name; if (system == "namespace") { if (name == "") return "Global namespace"; else return "C++ namespace " + name; } else if (system == "C++") return "C++ class " + name; else return name + "( of type " + info.description() + ")"; }
void TypeSystemInstance::add_conv(TypeInfo from_info, TypeInfo to_info) { this->conv_graph.add_conv( get_index(from_info), get_index(to_info), new NoChangeConv("from " + from_info.description() + " to " + to_info.description())); }