Skip to content

Commit 2a93b34

Browse files
committed
Merge branch 'master' into sh_merge_master
2 parents 52e6ead + b3a43d1 commit 2a93b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/stl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ struct variant_caster<V<Ts...>> {
372372
bool load_alternative(handle src, bool convert, type_list<U, Us...>) {
373373
auto caster = make_caster<U>();
374374
if (caster.load(src, convert)) {
375-
value = cast_op<U>(caster);
375+
value = cast_op<U>(std::move(caster));
376376
return true;
377377
}
378378
return load_alternative(src, convert, type_list<Us...>{});

0 commit comments

Comments
 (0)