MCPcopy Create free account
hub / github.com/fmtlib/fmt / operator()

Method operator()

include/fmt/printf.h:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86struct 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 {

Callers

nothing calls this directly

Calls 2

report_errorFunction · 0.85
max_ofFunction · 0.85

Tested by

no test coverage detected