-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
compile error ".parse" is not a member #2805
Comments
See the example how to format your own classes in fmtlib 10. |
Thanks for your response. So you're telling me to change my whole codebase and write formatters for every single type just because you upgraded to fmtlib 10? It all worked perfectly fine with my code example before you upgraded to fmtlib 10. |
You don't have to upgrade. It will be released in spdlog version 2.0 since it is a breaking change. |
As a quick fix, note you can just do #include "spdlog/fmt/ostr.h" // support for user defined types
template <> struct fmt::formatter<SomeData> : ostream_formatter {}; In any case, I think I will revert the upgrade to fmt 10 in this branch to avoid confusion (and re-apply in version 2 branch). |
Fixed in 4338b9c |
thank you .. now everything works again on latest commit without me having to write all those formatters myself :) |
After updating spdlog to the latest version I get the compile error: ".parse is not a member of ......"
My code worked perfectly fine before I updated spdlog. It seems like the commit 62e55e7 broke it.
Here's an example of what isn't working anymore. I have a struct with some data in it that i want to log:
If I construct the object and send it std::cout it works like expected and prints the data to the console. However when sending it to spdlog it won't compile.
When I checkout the commit right before the previously mentioned one ( b85c509 ) everything works fine.
EDIT: I forgot to mention I am in VS2022, c++latest (C++23)
The text was updated successfully, but these errors were encountered: