This paper is up for a vote in San Diego next week.
Note: I marked the calls as noexcept all the time, not just for C++20 - because we have freedom to do that.
Paths
| Differential D53828
Implement P0972R0: <chrono> zero(), min(), and max() should be noexcept ClosedPublic Authored by mclow.lists on Oct 29 2018, 12:31 PM.
Details Summary This paper is up for a vote in San Diego next week. Note: I marked the calls as noexcept all the time, not just for C++20 - because we have freedom to do that.
Diff Detail Event TimelineComment Actions
I think this should be subject to the Beyonce rule: If you like the behavior, put a test on it. Other then that, this patch LGTM. This revision is now accepted and ready to land.Oct 29 2018, 12:37 PM Comment Actions LGTM too, but I agree w/ Eric regarding the tests. Also, the link to p0927r2 doesn't seem right.
Revision Contents
Diff 171569 include/chrono
test/std/utilities/time/time.duration/time.duration.special/max.pass.cpp
test/std/utilities/time/time.duration/time.duration.special/min.pass.cpp
test/std/utilities/time/time.duration/time.duration.special/zero.pass.cpp
test/std/utilities/time/time.point/time.point.special/max.pass.cpp
test/std/utilities/time/time.point/time.point.special/min.pass.cpp
test/std/utilities/time/time.traits/time.traits.duration_values/max.pass.cpp
test/std/utilities/time/time.traits/time.traits.duration_values/min.pass.cpp
test/std/utilities/time/time.traits/time.traits.duration_values/zero.pass.cpp
|