lib/fmt/SocketAddressFormatter: simpler template syntax
This commit is contained in:
parent
7198db758d
commit
0d8498f1d1
|
@ -10,8 +10,7 @@
|
||||||
|
|
||||||
#include <concepts>
|
#include <concepts>
|
||||||
|
|
||||||
template<typename T>
|
template<std::convertible_to<SocketAddress> T>
|
||||||
requires std::convertible_to<T, SocketAddress>
|
|
||||||
struct fmt::formatter<T> : formatter<string_view>
|
struct fmt::formatter<T> : formatter<string_view>
|
||||||
{
|
{
|
||||||
template<typename FormatContext>
|
template<typename FormatContext>
|
||||||
|
|
Loading…
Reference in New Issue