Skip to content

Commit 370a2ae

Browse files
rhaschkewjakob
authored andcommitted
Declare call_impl() as && (#2057)
1 parent bf2b031 commit 370a2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ class argument_loader {
19781978
}
19791979

19801980
template <typename Return, typename Func, size_t... Is, typename Guard>
1981-
Return call_impl(Func &&f, index_sequence<Is...>, Guard &&) {
1981+
Return call_impl(Func &&f, index_sequence<Is...>, Guard &&) && {
19821982
return std::forward<Func>(f)(cast_op<Args>(std::move(std::get<Is>(argcasters)))...);
19831983
}
19841984

0 commit comments

Comments
 (0)