mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-02 01:47:12 +00:00
fix PYBIND11_OBJECT_DEFUALT
This commit is contained in:
parent
6f07805421
commit
5fb5ed9ab5
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user