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

[time.syn] add constexpr to leap_second comparisons #4539

Merged
merged 1 commit into from Mar 7, 2021

Conversation

MattStephanson
Copy link
Contributor

The comparison operators for leap_second are all specified as being constexpr in [time.zone.leap.nonmembers], but this specifier is missing in the corresponding section of [time.syn]. Although the current wording matches P0355R7, I think this could qualify as an editorial issue. It's internally inconsistent and the intent seems clear, especially because these functions just call the corresponding time_point overrides, which are constexpr in both places. I'm happy to submit an LWG issue, however, if you feel differently.

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this counts as editorial.

@jensmaurer jensmaurer merged commit e8240fb into cplusplus:master Mar 7, 2021
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

3 participants