You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
464 B
C++
22 lines
464 B
C++
// SPDX-License-Identifier: BSD-2-Clause
|
|
// author: Max Kellermann <max.kellermann@gmail.com>
|
|
|
|
#pragma once
|
|
|
|
#include "net/SocketAddress.hxx"
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include <concepts>
|
|
|
|
template<>
|
|
struct fmt::formatter<SocketAddress> : formatter<string_view>
|
|
{
|
|
auto format(SocketAddress address, format_context &ctx) const -> format_context::iterator;
|
|
};
|
|
|
|
template<std::convertible_to<SocketAddress> T>
|
|
struct fmt::formatter<T> : formatter<SocketAddress>
|
|
{
|
|
};
|