Skip to content

Commit 864ed11

Browse files
authored
chore: steal arg_v.value from copied arg in unpacking_collector (#4219)
1 parent 8275b76 commit 864ed11

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
@@ -1545,7 +1545,7 @@ class unpacking_collector {
15451545
throw cast_error_unable_to_convert_call_arg(a.name, a.type);
15461546
#endif
15471547
}
1548-
m_kwargs[a.name] = a.value;
1548+
m_kwargs[a.name] = std::move(a.value);
15491549
}
15501550

15511551
void process(list & /*args_list*/, detail::kwargs_proxy kp) {

0 commit comments

Comments
 (0)