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
This simple program does not compile:
#include "fmt/format.h" #include "fmt/ostream.h" void func() { std::string ss; fmt::format(fmt("{}"), ss); }
First lines of the error:
builds/fmt/include/fmt/format.h:2217:50: error: ambiguous partial specializations of 'formatter<std::__1::basic_string<char>, char, void>' formatter<T, typename ParseContext::char_type> f{};
The text was updated successfully, but these errors were encountered:
I can confirm this, but if fmt macro is not used then it compiles.
fmt
#include "fmt/format.h" #include "fmt/ostream.h" void func() { std::string ss; fmt::format("{}", ss); // ok // fmt::format(fmt("{}"), ss); // ERROR! }
The same error happens if <fmt/printf.h> is included.
<fmt/printf.h>
Sorry, something went wrong.
Fix handling of compile-time strings when including ostream.h (#768)
9ff3b6a
Fixed in 9ff3b6a, thanks for reporting.
No branches or pull requests
This simple program does not compile:
First lines of the error:
The text was updated successfully, but these errors were encountered: