-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[fmt] fix format conflict #25137
[fmt] fix format conflict #25137
Conversation
This looks wrong. The patch only modifies docs ( |
Waiting for user verification. |
This change comes from upstream, |
I think you have the wrong patch. vcpkg shouldn't install docs so there is no reason to patch docs.
I know about that and encountered that in HPX. vcpkg/ports/fmt/portfile.cmake Line 18 in be9fb7d
which thus deactivates the subfolder doc/ completelyhttps://github.com/fmtlib/fmt/blob/b135f1c01449f6f41be3933437797e768b54295a/CMakeLists.txt#L353-L355 So your change here doesn't do anything to the output of vcpkg. |
You want to patch |
Thanks for your comment, I will update this PR. |
@frits-greuter, Could you try if this PR solves your problem? |
- format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code); | ||
+ fmt::format_to(it, FMT_STRING("{}{}"), message, SEP); | ||
+ fmt::format_to(it, FMT_STRING("{}{}"), ERROR_STR, error_code); | ||
FMT_ASSERT(out.size() <= inline_buffer_size, ""); |
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.
Can you link to the upstream fix?
FMT_ASSERT(out.size() <= inline_buffer_size, ""); | ||
} | ||
|
||
diff --git a/src/os.cc b/src/os.cc |
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.
See fmtlib/fmt#2922
Fix #25109
Added patch
fix-format-conflict.patch
(fmtlib/fmt#2896), use qualified format_to call to avoid ADL conflict withstd::format_to
.No feature needs to test.