Add missing move

This commit is contained in:
Simon Brand
2018-06-06 13:56:56 +01:00
parent db183d6f04
commit 568f6d1801

View File

@@ -648,7 +648,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
geterr().~unexpected<E>();
construct(std::move(rhs).get());
} else {
assign_common(rhs);
assign_common(std::move(rhs));
}
}
@@ -666,7 +666,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
throw;
}
} else {
assign_common(rhs);
assign_common(std::move(rhs));
}
}