r268695 - in /branches/gcc-8-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Feb 8 14:16:00 GMT 2019


Author: redi
Date: Fri Feb  8 14:16:33 2019
New Revision: 268695

URL: https://gcc.gnu.org/viewcvs?rev=268695&root=gcc&view=rev
Log:
P0972R0 <chrono> zero(), min(), and max() should be noexcept

This paper has been included in the C++20 draft, but the changes to add
noexcept can be made unconditionally, to apply for C++11 too.

Backport from mainline
2019-01-11  Jonathan Wakely  <jwakely@redhat.com>

	* include/std/chrono (duration_values::zero(), duration_values::min())
	(duration_values::max()): Add noexcept.
	(duration::zero(), duration::min(), duration::max()): Likewise.
	(time_point::zero(), time_point::min(), time_point::max()): Likewise.
	* testsuite/20_util/duration/requirements/noexcept.cc: New test.
	* testsuite/20_util/time_point/requirements/noexcept.cc: New test.

Added:
    branches/gcc-8-branch/libstdc++-v3/testsuite/20_util/duration/requirements/noexcept.cc
    branches/gcc-8-branch/libstdc++-v3/testsuite/20_util/time_point/requirements/noexcept.cc
Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/std/chrono



More information about the Libstdc++-cvs mailing list