mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Add missing move in arg_v constructor
This commit is contained in:
parent
784e96c5ad
commit
126fc7c524
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user