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
although that may open a hole for egregious precision issues when using unit_t with integral value_type. Perhaps this conversion should be allowed if std::is_floating_point_v<value_type> and otherwise only if the ratio between unit_t's ratio and Period is less than std::ratio<1> (i.e., only implicit integer conversion if unit_t is finer-grained.)
But really, I just want to allow implicit conversion when the std::chrono::duration representation is exactly the same as unit_t.
Please include the following information in your issue:
Related to #290
Conversion from
std::chrono::duration<double>
tounits::seconds_t
goes throughstd::chrono::nanoseconds
, so it's inexact.The text was updated successfully, but these errors were encountered: