mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-19 15:10:38 +00:00
Also remove return_value_policy::_return_as_bytes in pybind11/eigen/
This commit is contained in:
parent
afd612b50e
commit
c4df281e9d
@ -351,9 +351,6 @@ private:
|
|||||||
return eigen_ref_array<props>(*src);
|
return eigen_ref_array<props>(*src);
|
||||||
case return_value_policy::reference_internal:
|
case return_value_policy::reference_internal:
|
||||||
return eigen_ref_array<props>(*src, parent);
|
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:
|
default:
|
||||||
throw cast_error("unhandled return_value_policy: should not happen!");
|
throw cast_error("unhandled return_value_policy: should not happen!");
|
||||||
};
|
};
|
||||||
|
@ -313,10 +313,6 @@ struct type_caster<Type, typename eigen_tensor_helper<Type>::ValidType> {
|
|||||||
writeable = !std::is_const<C>::value;
|
writeable = !std::is_const<C>::value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case return_value_policy::_return_as_bytes:
|
|
||||||
pybind11_fail("return_value_policy::_return_as_bytes does not apply.");
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pybind11_fail("pybind11 bug in eigen.h, please file a bug report");
|
pybind11_fail("pybind11 bug in eigen.h, please file a bug report");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user