From 370a2ae2b364cc91792ecf2a343b14fca5d488ad Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 5 Jan 2020 15:49:24 +0100 Subject: [PATCH] Declare call_impl() as && (#2057) --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 38eb8a88f..a0b4d1ba9 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1978,7 +1978,7 @@ private: } template - Return call_impl(Func &&f, index_sequence, Guard &&) { + Return call_impl(Func &&f, index_sequence, Guard &&) && { return std::forward(f)(cast_op(std::move(std::get(argcasters)))...); }