mirror of
https://github.com/TartanLlama/expected.git
synced 2025-08-03 10:54:31 +02:00
Add missing move
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user