Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constexpr to optional::value_or(U&&) && #839

Merged
merged 1 commit into from Jul 21, 2016

Conversation

CaseyCarter
Copy link
Contributor

This constexpr specifier is present in the <optional> synopsis, but omitted from the detailed specification in [optional.object.observe]. (I understand I'm stretching the definition of "editorial" here. Please let me know if the editors feel this change is substantive, and I'll file a defect report with LWG.)

This constexpr specifier is present in the `<optional>` synopsis, but omitted from the detailed specification in [optional.object.observe]. (I understand I'm stretching the definition of "editorial" here. Please let me know if the editors feel this change is substantive, and I'll file a defect report with LWG.)
@zygoloid
Copy link
Member

This is OK to fix editorially; the detailed specification is only supposed to specify which function from the synopsis we're referring to, and it's not uncommon for elements that don't affect the signature to be omitted (exception specifiers, constexpr, override, ...).

@zygoloid zygoloid merged commit acd3ef2 into cplusplus:master Jul 21, 2016
cpplearner added a commit to cpplearner/fundamentals-ts that referenced this pull request Jul 23, 2016
This change is present in [N4078](http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2014/n4078.html), but for some reason was missed when [N4078 was applied](cplusplus@7b47f9c). See also cplusplus/draft#839
@CaseyCarter CaseyCarter deleted the patch-2 branch December 16, 2019 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants