You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constraints: No overflow is induced in the conversion and treat_as_floating_point_v<rep> is true or both ratio_divide<Period2, period>::den is 1 and treat_as_floating_point_v<Rep2> is false.
There are a bit too many conjunctions in this sentence, making the sentence hard to parse.
It's unclear what "No overflow is induced in the conversion" means. Based on LWG 2094, I guess it means that no overflow shall occur when computing ratio_divide, but this is not obvious.
(My initial reading is that duration<int, micro> us = duration<int, milli>::max(); should be an error due to overflow, but the example shows that msis convertible to duration<int, micro>, and we can't SFINAE on argument value).
The text was updated successfully, but these errors were encountered:
[time.duration.cons]/3:
ratio_divide
, but this is not obvious.(My initial reading is that
duration<int, micro> us = duration<int, milli>::max();
should be an error due to overflow, but the example shows thatms
is convertible toduration<int, micro>
, and we can't SFINAE on argument value).The text was updated successfully, but these errors were encountered: