-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Building spdlog with Visual Studio 17.8 fails #2912
Comments
Yes, Lines 91 to 92 in ff205fd
|
Hey. Using the bundled |
@MiKom Use external fmt if you want to use new features of fmt or if another library depends on a different version of fmt than spdlog. |
Spdlog ver 1.x cant bundle new fmt versions without breaking backward compatibility. spdlog ver 2.x will use the latest fmt version soon. As @tt4g said, you can use easily different fmt version using the right macro. |
Yes, I know that. My question was different though. I was wondering if there's some showstopper for inclusion of the new fmt. And as @gabime pointed out, indeed there is for spdlog 1.x. Now I understand the situation fully and can act accordingly. Thanks @gabime |
This comment was incorrect. spdlog is compatible with fmt 10.x, you needs to use spdlog 1.12.0 or later though. |
@MiKom |
@MiKom Actually it is compatible with fmt 10.x. It just doesn't bundle it. |
@gabime You're right of course. My mistake was using spdlog 1.11.0 whereas the fix for fmt 10.x was done in 1.12.0. Thanks! |
Hi,
Currently still on Preview 4, Visual Studio 17.8 C++ STL deprecates the use of
checked_array_iterator
with this change: microsoft/STL#3818spdlog uses it here:
spdlog/include/spdlog/fmt/bundled/format.h
Lines 489 to 490 in ff205fd
This causes a build error due to the deprecation if warnings are treated as errors.
On PowerToys we use spdlog and are getting around this by adding the
_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING
definition, but thisstdext::checked_array_iterator
feature is expected to be removed entirely in the future.https://github.com/microsoft/PowerToys/pull/29303/files#diff-db47b6c13dd626082ddffbfd3e6d5c7087bfbd39e92c99f4b28a1561a1f19593
From my understanding, this is used in spdlog to work around one warning. With the changes in STL is this still needed?
If this code just comes from the fmt liv, I believe it's been dealt with already in fmtlib/fmt#3540 and microsoft/vcpkg#32652 .
Thanks, in advance.
The text was updated successfully, but these errors were encountered: