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
update fmt and fix warnings that popped up with vs 17.2 #10652
Conversation
make_args_checked is deprecated see fmtlib/fmt#2760 and the linked comment
I mean you might be able to, but I generally ask why? In a general sense, unless a project is trying to limit includes or doesn't want the hassle of setting up the dependency, fmt provides additional features. I'd even question if More specific to Dolphin, GCC 12.1 just released and still doesn't support |
|
i dont know if you refer to edit: i guess we do use |
|
@shuffle2 - we also use memory_buffer |
|
memory_buffer doesn't really seem important / lacking an equivalent I'm also not familiar enough with |
|
besides |
I do use named arguments in one of my PRs which doesn't have an equivalent, AFAICT.
I'm pretty sure it is since C++20 compile-time strings checks are enforced by default according to the documentation. That's why Regardless, the code looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Personally I'd opt for continuing to use fmt until <format> is supported on all compilers we support and then switch off of it, since there are a few API differences between the two
|
Seems like the Windows builders need an updated VS version |
yup, i was just going to wait for the builder to auto-update this weekend |
This PR fixes some warnings/errors occurring because of
fmtafter updating to latest VS.This is expected to not build on windows buildbot for now (buildbot checks for updates every saturday, and i haven't manually updated it). So, we'll start seeing this build break in a few days (and then this PR will work).
Making the PR now in case there needs to be some discussion about the changes.
ping @lioncash because of heavy c++/fmt stuff
as an aside, can we just use™️ (https://devblogs.microsoft.com/cppblog/msvcs-stl-completes-stdc20/)
<format>on msvc? As of VS 17.2 it's officially standard-compliantIt seems like the API (at least the subset we use) should be basically compatible, it's just annoying because it's in a different namespace.