mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
Add back case return_value_policy::_return_as_bytes
This commit is contained in:
parent
50da709678
commit
18fae43b26
@ -360,6 +360,9 @@ 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!");
|
||||||
};
|
};
|
||||||
|
@ -316,6 +316,10 @@ 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