mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
Revert change for floating point reps in decimal_format_seconds
This commit is contained in:
parent
7d811743e0
commit
e12095f26f
@ -3732,8 +3732,7 @@ public:
|
||||
|
||||
CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT
|
||||
: s_(std::chrono::duration_cast<std::chrono::seconds>(d))
|
||||
, sub_s_(std::chrono::treat_as_floating_point<rep>::value ? d - s_ :
|
||||
std::chrono::duration_cast<precision>(d - s_))
|
||||
, sub_s_(std::chrono::duration_cast<precision>(d - s_))
|
||||
{}
|
||||
|
||||
CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user