C++17 GB50 resolution (P0505R0)
authorDinka Ranns <dinka.ranns@googlemail.com>
Sun, 19 Feb 2017 16:04:35 +0000 (16:04 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 19 Feb 2017 16:04:35 +0000 (16:04 +0000)
commit1dee318ad864c606879b7807f768f9be0d0baa1d
treef0e7d06abeba92b2e38c00b72b66b62038ef1078
parent7dfa657b5bae61a458721d079320fb82401ed58b
C++17 GB50 resolution (P0505R0)

2017-02-19  Dinka Ranns  <dinka.ranns@googlemail.com>

C++17 GB50 resolution
* include/std/chrono (duration::operator++()): Add
_GLIBCXX17_CONSTEXPR.
(duration::operator++(int)): Likewise.
(duration::operator--()): Likewise.
(duration::operator--(int)): Likewise.
(duration::operator+=(const duration&)): Likewise.
(duration::operator-=(const duration&)): Likewise.
(duration::operator*=(const rep&)): Likewise.
(duration::operator/=(const rep&)): Likewise.
(duration::operator%=(const rep&)): Likewise.
(duration::operator%=(const duration&)): Likewise.
(time_point::operator+=(const duration&)): Likewise.
(time_point::operator-=(const duration&)): Likewise.
* testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test.
* testsuite/20_util/duration/literals/range.cc: Adjust dg-error.
* testsuite/20_util/time_point/arithmetic/constexpr.cc: New test.

From-SVN: r245575
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/20_util/duration/arithmetic/constexpr_c++17.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/duration/literals/range.cc
libstdc++-v3/testsuite/20_util/time_point/arithmetic/constexpr.cc [new file with mode: 0644]