Remove the invalid noexcept specification

This commit is contained in:
Chris Robinson
2021-01-08 19:23:17 -08:00
parent 89906453ea
commit b99adb623d
+1 -1
View File
@@ -67,7 +67,7 @@ class optional {
public:
using value_type = T;
optional() noexcept = default;
optional() = default;
optional(nullopt_t) noexcept { }
optional(const optional &rhs) { if(rhs) doConstruct(*rhs); }
optional(optional&& rhs) { if(rhs) doConstruct(std::move(*rhs)); }