Closed
Description
When trying to convert set types, I get a compilation error:
pybind11/include/pybind11/stl.h:87:37: error: invalid conversion from ‘long int’ to ‘PyObject* {aka _object*}’ [-fpermissive]
The source seems to be these lines (starting at line 87):
if (PySet_Add(set, value) != 0) {
Py_DECREF(value);
Py_DECREF(set);
return nullptr;
I think value
on lines 87 and 88 should be value_
, which is the PyObject * created on line 82:
PyObject *value_ = value_conv::cast(value, policy, parent);
Metadata
Metadata
Assignees
Labels
No labels