Declare call_impl() as && (#2057)

This commit is contained in:
Robert Haschke 2020-01-05 15:49:24 +01:00 committed by Wenzel Jakob
parent bf2b031449
commit 370a2ae2b3

View File

@ -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)))...);
}