[PATCH] D53828: Implement P0972R0: <chrono> zero(), min(), and max() should be noexcept

Marshall Clow via Phabricator reviews at reviews.llvm.org
Mon Oct 29 12:32:43 PDT 2018


mclow.lists created this revision.
mclow.lists added reviewers: ldionne, EricWF.

This paper <https://wg21.link/P0927>  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.
However, the tests just check when we're building for C++20.


https://reviews.llvm.org/D53828

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53828.171554.patch
Type: text/x-patch
Size: 9429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181029/c1e3361c/attachment.bin>


More information about the libcxx-commits mailing list