Add missing move in arg_v constructor

This commit is contained in:
Aaron Gokaslan 2022-04-02 14:14:53 -04:00
parent 784e96c5ad
commit 126fc7c524

View File

@ -1243,7 +1243,7 @@ struct arg_v : arg {
private: private:
template <typename T> template <typename T>
arg_v(arg &&base, T &&x, const char *descr = nullptr) arg_v(arg &&base, T &&x, const char *descr = nullptr)
: arg(base), value(reinterpret_steal<object>(detail::make_caster<T>::cast( : arg(std::move(base)), value(reinterpret_steal<object>(detail::make_caster<T>::cast(
std::forward<T>(x), return_value_policy::automatic, {}))), std::forward<T>(x), return_value_policy::automatic, {}))),
descr(descr) descr(descr)
#if !defined(NDEBUG) #if !defined(NDEBUG)