We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
count_digits()
godbolt repro
In file included from /opt/compiler-explorer/libs/fmt/trunk/include/fmt/core.h:5, from <source>:1: /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h: In function 'constexpr OutputIt fmt::v11::detail::write_exponent(int, OutputIt)': /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1608:56: error: call of overloaded 'count_digits(unsigned int&)' is ambiguous 1608 | return format_decimal<Char>(out, uexp, count_digits(uexp)); | ~~~~~~~~~~~~^~~~~~ /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1183:29: note: candidate: 'int fmt::v11::detail::count_digits(uint64_t)' 1183 | FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int { | ^~~~~~~~~~~~ /opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1233:29: note: candidate: 'int fmt::v11::detail::count_digits(uint32_t)' 1233 | FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int { | ^~~~~~~~~~~~ Compiler returned: 1
The text was updated successfully, but these errors were encountered:
Fixed in 9831431. Thanks for reporting!
Sorry, something went wrong.
Thank you for the fix! I looked at the code, but couldn't grasp it well enough to suggest a fix.
No branches or pull requests
godbolt repro
The text was updated successfully, but these errors were encountered: