Template Function fmt::v6::safe_duration_cast::safe_float_conversion

Function Documentation

template<typename To, typename From, enable_if_t<(!std::is_same<From, To>::value), int> = 0>
To safe_duration_cast::v6::fmt::safe_float_conversion(const From from, int &ec)

converts From to To if possible, otherwise ec is set.