lib/fmt/SocketAddressFormatter: add `const` for fmt 11 support
See d70729215f
This commit is contained in:
parent
175103e8d4
commit
28c030c0f0
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue