mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
fix pyname for non default constructible classes
This commit is contained in:
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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user