On 13/10/16 15:24 +0100, Jonathan Wakely wrote:
Decrementing a duration is not constexpr (yet ... I made an NB comment
I'm not sure if these functions are correct for floating-point
durations, because we could end up with a duration which is very very
slightly lower of higher than the desired value, but then we subtract
1.0 from it. That's what the reference implementation in Howard's
proposal does, so I'll worry about it another day.
* include/std/chrono (floor): Replace non-constexpr operation.
* testsuite/20_util/duration_cast/rounding.cc: Test conversion to
durations with floating pointer representations.
Tested powerpc64le-linux, committed to trunk.
Not actually committed yet because I'm stuck at:
Committing to svn+ssh://r...@gcc.gnu.org/svn/gcc/trunk ...
It should finish eventually.