We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52e6ead + b3a43d1 commit 2a93b34Copy full SHA for 2a93b34
include/pybind11/stl.h
@@ -372,7 +372,7 @@ struct variant_caster<V<Ts...>> {
372
bool load_alternative(handle src, bool convert, type_list<U, Us...>) {
373
auto caster = make_caster<U>();
374
if (caster.load(src, convert)) {
375
- value = cast_op<U>(caster);
+ value = cast_op<U>(std::move(caster));
376
return true;
377
}
378
return load_alternative(src, convert, type_list<Us...>{});
0 commit comments