| 202 | |
| 203 | template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)> |
| 204 | auto operator()(T value) -> unsigned { |
| 205 | auto width = static_cast<uint32_or_64_or_128_t<T>>(value); |
| 206 | if (detail::is_negative(value)) { |
| 207 | specs_.set_align(align::left); |
| 208 | width = 0 - width; |
| 209 | } |
| 210 | unsigned int_max = to_unsigned(max_value<int>()); |
| 211 | if (width > int_max) report_error("number is too big"); |
| 212 | return static_cast<unsigned>(width); |
| 213 | } |
| 214 | |
| 215 | template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)> |
| 216 | auto operator()(T) -> unsigned { |
nothing calls this directly
no test coverage detected