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"
|
#include "net/ToString.hxx"
|
||||||
|
|
||||||
auto
|
auto
|
||||||
fmt::formatter<SocketAddress>::format(SocketAddress address, format_context &ctx)
|
fmt::formatter<SocketAddress>::format(SocketAddress address, format_context &ctx) const
|
||||||
-> format_context::iterator
|
-> format_context::iterator
|
||||||
{
|
{
|
||||||
return formatter<string_view>::format(ToString(address), ctx);
|
return formatter<string_view>::format(ToString(address), ctx);
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
template<>
|
template<>
|
||||||
struct fmt::formatter<SocketAddress> : formatter<string_view>
|
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>
|
template<std::convertible_to<SocketAddress> T>
|
||||||
|
|
Loading…
Reference in New Issue