fix PYBIND11_OBJECT_DEFUALT

This commit is contained in:
Michael Carlstrom 2024-07-26 10:29:21 -04:00
parent 6f07805421
commit 5fb5ed9ab5

View File

@ -125,10 +125,10 @@ class TypeVar : public object {
#endif #endif
class NameWrapper : public object { class NameWrapper : public object {
PYBIND11_OBJECT_DEFAULT(TypeVarObject, object, PyObject_Type) PYBIND11_OBJECT_DEFAULT(NameWrapper, object, PyObject_Type)
using object::object; using object::object;
NameWrapper(const char *name) { attr("__name__") = name; } NameWrapper(const char *name) { attr("__name__") = name; }
} };
template <typename T> template <typename T>
class TypeVarObject : public object { class TypeVarObject : public object {