lib/fmt/SocketAddressFormatter: add `const` for fmt 11 support

See d70729215f
This commit is contained in:
Max Kellermann 2024-07-05 17:33:34 +02:00 committed by Max Kellermann
parent 175103e8d4
commit 28c030c0f0
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include "net/ToString.hxx"
auto
fmt::formatter<SocketAddress>::format(SocketAddress address, format_context &ctx)
fmt::formatter<SocketAddress>::format(SocketAddress address, format_context &ctx) const
-> format_context::iterator
{
return formatter<string_view>::format(ToString(address), ctx);

View File

@ -12,7 +12,7 @@
template<>
struct fmt::formatter<SocketAddress> : formatter<string_view>
{
auto format(SocketAddress address, format_context &ctx) -> format_context::iterator;
auto format(SocketAddress address, format_context &ctx) const -> format_context::iterator;
};
template<std::convertible_to<SocketAddress> T>