| 86 | struct printf_precision_handler { |
| 87 | template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)> |
| 88 | auto operator()(T value) -> int { |
| 89 | if (!int_checker<std::numeric_limits<T>::is_signed>::fits_in_int(value)) |
| 90 | report_error("number is too big"); |
| 91 | return max_of(static_cast<int>(value), 0); |
| 92 | } |
| 93 | |
| 94 | template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)> |
| 95 | auto operator()(T) -> int { |
nothing calls this directly
no test coverage detected