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

Remove requirement duplication from Cpp17TrivialClock #2734

Closed
Dani-Hub opened this issue Mar 5, 2019 · 1 comment
Closed

Remove requirement duplication from Cpp17TrivialClock #2734

Dani-Hub opened this issue Mar 5, 2019 · 1 comment
Assignees

Comments

@Dani-Hub
Copy link
Member

Dani-Hub commented Mar 5, 2019

With the acceptance of LWG 3133 during the Kona 2019 meeting it would be now possible to simplify the current wording in [time.clock.req] p4 as follows:

A type TC meets the Cpp17TrivialClock requirements if:
(4.1) - [...]
(4.2) - the types TC::rep, TC::duration, and TC::time_point satisfy the Cpp17EqualityComparable (Table23), Cpp17LessThanComparable (Table 24), Cpp17DefaultConstructible (Table 25), Cpp17CopyConstructible (Table 27), Cpp17CopyAssignable (Table 29), and Cpp17Destructible (Table 30) requirements and the requirements of numeric types (25.2). [Note: This means, in particular, that operations on these types will not throw exceptions. —end note]
(4.3) - [...]
(4.4) - [...]
(4.5) - [...]

This is possible, because the revised numeric types requirements ([numeric.requirements] p1) now explicitly call out the Cpp17DefaultConstructible, Cpp17CopyConstructible, Cpp17CopyAssignable, and Cpp17Destructible requirements.

Could we please perform this simplification editorially?

@Dani-Hub Dani-Hub changed the title Remove requirement duplication from TrivialClock Remove requirement duplication from Cpp17TrivialClock Mar 5, 2019
@jensmaurer jensmaurer self-assigned this Mar 9, 2019
@Dani-Hub
Copy link
Member Author

Thanks - looks great!

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

No branches or pull requests

2 participants