Revert change for floating point reps in decimal_format_seconds

This commit is contained in:
Howard Hinnant 2020-04-18 09:24:53 -04:00
parent 7d811743e0
commit e12095f26f

View File

@ -3732,8 +3732,7 @@ public:
CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT
: s_(std::chrono::duration_cast<std::chrono::seconds>(d)) : s_(std::chrono::duration_cast<std::chrono::seconds>(d))
, sub_s_(std::chrono::treat_as_floating_point<rep>::value ? d - s_ : , sub_s_(std::chrono::duration_cast<precision>(d - s_))
std::chrono::duration_cast<precision>(d - s_))
{} {}
CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;} CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;}