expected::error()
is inconsistently noexcept
#2733
Labels
LWG issue needed
A wording defect that should be submitted to LWG as a new issue
resolved
Successfully resolved without a commit
WG21-N4910 [expected.object.general] class definition:
[expected.object.obs]/12, /14:
This appears to be an editorial issue - if [expected.object.obs] has decided that they should be
noexcept
regardless of Preconditions, then the class definition should match.[expected.void.general] class definition:
[expected.void.obs]/5, /7:
These consistently omit
noexcept
, but it makes no sense that the partial specialization would differ from the primary template here. This appears to be worthy of an LWG issue.I did a quick search and didn't see existing issues covering this.
The text was updated successfully, but these errors were encountered: