Skip to content

Commit

Permalink
lib/fmt/SocketAddressFormatter: simpler template syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jun 25, 2024
1 parent cd935a9 commit 35c07c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/fmt/SocketAddressFormatter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

#include <concepts>

template<typename T>
requires std::convertible_to<T, SocketAddress>
template<std::convertible_to<SocketAddress> T>
struct fmt::formatter<T> : formatter<string_view>
{
template<typename FormatContext>
Expand Down

0 comments on commit 35c07c4

Please sign in to comment.