Skip to content

Commit c4df281

Browse files
committed
Also remove return_value_policy::_return_as_bytes in pybind11/eigen/
1 parent afd612b commit c4df281

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

include/pybind11/eigen/matrix.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,6 @@ struct type_caster<Type, enable_if_t<is_eigen_dense_plain<Type>::value>> {
351351
return eigen_ref_array<props>(*src);
352352
case return_value_policy::reference_internal:
353353
return eigen_ref_array<props>(*src, parent);
354-
case return_value_policy::_return_as_bytes:
355-
pybind11_fail("return_value_policy::_return_as_bytes does not apply.");
356-
break;
357354
default:
358355
throw cast_error("unhandled return_value_policy: should not happen!");
359356
};

include/pybind11/eigen/tensor.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,6 @@ struct type_caster<Type, typename eigen_tensor_helper<Type>::ValidType> {
313313
writeable = !std::is_const<C>::value;
314314
break;
315315

316-
case return_value_policy::_return_as_bytes:
317-
pybind11_fail("return_value_policy::_return_as_bytes does not apply.");
318-
break;
319-
320316
default:
321317
pybind11_fail("pybind11 bug in eigen.h, please file a bug report");
322318
}

0 commit comments

Comments
 (0)