mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Declare call_impl() as && (#2057)
This commit is contained in:
parent
bf2b031449
commit
370a2ae2b3
@ -1978,7 +1978,7 @@ private:
|
||||
}
|
||||
|
||||
template <typename Return, typename Func, size_t... Is, typename Guard>
|
||||
Return call_impl(Func &&f, index_sequence<Is...>, Guard &&) {
|
||||
Return call_impl(Func &&f, index_sequence<Is...>, Guard &&) && {
|
||||
return std::forward<Func>(f)(cast_op<Args>(std::move(std::get<Is>(argcasters)))...);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user