mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40: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 {
|
struct PyNameTraits {
|
||||||
static const std::string & GetName()
|
static const std::string & GetName()
|
||||||
{
|
{
|
||||||
static const std::string name =
|
static const std::string name = typeid(T).name();
|
||||||
py::cast<std::string>(py::cast(T()).attr("__class__").attr("__name__"));
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user