From 352b04dd9535ede8593d7681d35adf9f5c4f44ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 10:13:11 +0000 Subject: [PATCH] style: pre-commit fixes --- include/pybind11/cast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index d63aeee6c0..e72e9ae492 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -48,7 +48,8 @@ typename make_caster::template cast_op_type cast_op(make_caster &caster template typename make_caster::template cast_op_type::type> cast_op(make_caster &&caster) { - using result_t = typename make_caster::template cast_op_type::type>; + using result_t = typename make_caster::template cast_op_type< + typename std::add_rvalue_reference::type>; return std::move(caster).operator result_t(); }