-
Notifications
You must be signed in to change notification settings - Fork 286
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
switch from custom stringFormat to fmtlib #2769
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2769 +/- ##
==========================================
- Coverage 64.62% 64.57% -0.05%
==========================================
Files 104 104
Lines 22239 22155 -84
Branches 10911 10849 -62
==========================================
- Hits 14371 14306 -65
+ Misses 5626 5610 -16
+ Partials 2242 2239 -3 ☔ View full report in Codecov by Sentry. |
How about we just wait for C++20 as min requirement and use std::format straight away? Or code it in a way to use std::format if using C++20 so there is one less dependency? |
1ac41a6
to
db8dbda
Compare
43e31a2
to
51b29fe
Compare
Rebased. |
Rebased. |
@neheb I think I managed to install GCC 13 for the Cygwin job so this can finally proceed. |
Hmm? Not sure what you mean by GCC 13 on Cygwin needed. |
It's been a while, heh? 😉 There is no fmt package on Cygwin, and only GCC (libstdc++) 13 onwards has this feature. |
I think the CIFuzz error might fix itself after this is merged. My guess is that OSS-Fuzz is running |
7fb888b
to
72ed49a
Compare
hmmm CMAKE_CXX_STANDARD is not being overwritten. |
Looks like it gets reset back to 17 at least here and here: exiv2/cmake/compilerFlags.cmake Line 4 in cb6cbb1
exiv2/cmake/FindFilesystem.cmake Line 129 in cb6cbb1
Those should probably be wrapped w/ |
0f57ce6
to
89d78d9
Compare
The latter helps to avoid wrong format errors and is simpler to use. Will be replaced by std::format once C++20 becomes mandatory. Signed-off-by: Rosen Penev <[email protected]>
good to go now. |
Signed-off-by: Rosen Penev <[email protected]>
Ah, one last thing, but could be added in a separate PR: probably now also need to (conditionally) include |
The latter helps to avoid wrong format errors and is simpler to use. Will be replaced by std::format once C++20 becomes mandatory.