Skip to content
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

V1.14 don't support Win32xx.CString on vs2017 #3094

Open
soncfe opened this issue May 24, 2024 · 1 comment
Open

V1.14 don't support Win32xx.CString on vs2017 #3094

soncfe opened this issue May 24, 2024 · 1 comment

Comments

@soncfe
Copy link

soncfe commented May 24, 2024

CString abc = "123";
spdlog::default_logger_raw()->info("{}", abc);

Before V1.13/12/11..., spdlog can support the Win32xx CString Class,
Now on V1.14 or 1.14.1, compile report
static_assert(
formattable,
"Cannot format an argument. To make type T formattable provide a "
"formatter specialization: https://fmt.dev/latest/api.html#udt");
return {arg_mapper().map(val)};

https://github.com/DavidNash2024/Win32xx

@tt4g
Copy link
Contributor

tt4g commented May 24, 2024

The latest version of spdlog is 1.14.1, not v14.

I don't know which version you are using, but the compile error message explains it all. You have not defined fmt::formatter<CString>, which is the cause of the compile error.
See: #2825 (comment)

@soncfe soncfe changed the title V14 don't support Win32xx.CString V1.14 don't support Win32xx.CString May 24, 2024
@soncfe soncfe changed the title V1.14 don't support Win32xx.CString V1.14 don't support Win32xx.CString on vs2017 May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants