vcpkg/ports/fmt/fix-format-conflict.patch
sean e2a71489b1
[fmt] Update to 9.0.0 (#25658)
* [fmt] Update to 9.0.0

* update version

* write version

Co-authored-by: FrankXie <v-frankxie@microsoft.com>
2022-08-04 14:09:02 -07:00

16 lines
730 B
Diff

diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h
index f44df01c..59cc4559 100644
--- a/include/fmt/format-inl.h
+++ b/include/fmt/format-inl.h
@@ -62,8 +62,8 @@ FMT_FUNC void format_error_code(detail::buffer<char>& out, int error_code,
error_code_size += detail::to_unsigned(detail::count_digits(abs_value));
auto it = buffer_appender<char>(out);
if (message.size() <= inline_buffer_size - error_code_size)
- format_to(it, FMT_STRING("{}{}"), message, SEP);
- 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, "");
}