Skip to content

Commit

Permalink
Also remove return_value_policy::_return_as_bytes in pybind11/eigen/
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve authored and rwgk committed Jun 11, 2024
1 parent afd612b commit c4df281
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions include/pybind11/eigen/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,6 @@ struct type_caster<Type, enable_if_t<is_eigen_dense_plain<Type>::value>> {
return eigen_ref_array<props>(*src);
case return_value_policy::reference_internal:
return eigen_ref_array<props>(*src, parent);
case return_value_policy::_return_as_bytes:
pybind11_fail("return_value_policy::_return_as_bytes does not apply.");
break;
default:
throw cast_error("unhandled return_value_policy: should not happen!");
};
Expand Down
4 changes: 0 additions & 4 deletions include/pybind11/eigen/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,6 @@ struct type_caster<Type, typename eigen_tensor_helper<Type>::ValidType> {
writeable = !std::is_const<C>::value;
break;

case return_value_policy::_return_as_bytes:
pybind11_fail("return_value_policy::_return_as_bytes does not apply.");
break;

default:
pybind11_fail("pybind11 bug in eigen.h, please file a bug report");
}
Expand Down

0 comments on commit c4df281

Please sign in to comment.