1
0
mirror of https://github.com/NGSolve/netgen.git synced 2025-04-23 22:02:04 +05:00

fix pyname for non default constructible classes

This commit is contained in:
Christopher Lackner 2019-09-11 15:17:09 +02:00
parent 9510670140
commit c359832767

@ -21,8 +21,7 @@ namespace ngcore
struct PyNameTraits {
static const std::string & GetName()
{
static const std::string name =
py::cast<std::string>(py::cast(T()).attr("__class__").attr("__name__"));
static const std::string name = typeid(T).name();
return name;
}
};