Merge pull request #55121 from zhscn/fix-ambiguous-error

common: fix ambiguous error when using gcc 13

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2024-01-26 14:42:06 +08:00 committed by GitHub
commit d813ce1923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,7 +220,7 @@ struct fmt::formatter<librados::object_id_t> {
template <typename FormatContext>
auto format(const auto &oid, FormatContext& ctx) const
{
return format_to(ctx.out(), "{}/{}/{}", oid.locator, oid.nspace, oid.name);
return fmt::format_to(ctx.out(), "{}/{}/{}", oid.locator, oid.nspace, oid.name);
}
};