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

Function Documentation

template<typename To, typename FromRep, typename FromPeriod, enable_if_t<(std::is_integral<FromRep>::value), int> = 0, enable_if_t<(std::is_integral<typename To::rep>::value), int> = 0>
To fmt::v6::safe_duration_cast::safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, int &ec)

safe duration cast between integral durations

safe duration_cast between floating point durations