This commit is contained in:
Simon Brand
2018-10-12 13:34:03 +01:00
parent b53059c63d
commit 3449fbc904
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ template <class T> struct optional_operations_base : optional_storage_base<T> {
}
}
if (rhs.has_value()) {
else if (rhs.has_value()) {
construct(std::forward<Opt>(rhs).get());
}
}