Also remove return_value_policy::_return_as_bytes in pybind11/eigen/

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-06-10 19:23:08 -07:00 committed by Ralf W. Grosse-Kunstleve
parent afd612b50e
commit c4df281e9d
2 changed files with 0 additions and 7 deletions

View File

@ -351,9 +351,6 @@ private:
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!");
};

View File

@ -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");
}