We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 620a808 commit 5687b33Copy full SHA for 5687b33
include/pybind11/eigen.h
@@ -229,7 +229,7 @@ handle eigen_ref_array(Type &src, handle parent = none()) {
229
// not the Type of the pointer given is const.
230
template <typename props, typename Type, typename = enable_if_t<is_eigen_dense_plain<Type>::value>>
231
handle eigen_encapsulate(Type *src) {
232
- capsule base(src, [](PyObject *o) { delete reinterpret_steal<capsule>(o).operator Type*(); });
+ capsule base(src, [](PyObject *o) { delete static_cast<Type *>(PyCapsule_GetPointer(o, nullptr)); });
233
return eigen_ref_array<props>(*src, base);
234
}
235
0 commit comments