From 4a81c39d94b6877f7753896218467ff77b8d7f6f Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 30 Nov 2026 23:33:26 +0100 Subject: class -> typename --- server/src/util.cppm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/src/util.cppm') diff --git a/server/src/util.cppm b/server/src/util.cppm index 986e350..aedc120 100644 --- a/server/src/util.cppm +++ b/server/src/util.cppm @@ -7,7 +7,7 @@ import std; namespace routemon::util { // For use with e.g. std::visit (on std::variant). -template +template struct overloaded : Ts... { using Ts::operator()...; @@ -48,7 +48,7 @@ constexpr auto parse_int(std::string_view s, int base = 10) noexcept return x; } -template +template class aolist : public std::enable_shared_from_this> { T v_; @@ -177,10 +177,10 @@ constexpr auto split_on(std::string_view s, char c) return std::make_pair(s, std::nullopt); } -template +template class not_null; -template +template class not_null { T* p_; @@ -220,7 +220,7 @@ public: auto operator->() const noexcept -> T* { return p_; } }; -template +template explicit not_null(T*) -> not_null; template <> @@ -248,7 +248,7 @@ explicit not_null(lazy_zstring_view s) -> not_null; template <> struct std::formatter { - template + template constexpr auto parse(ParseContext& ctx) -> ParseContext::iterator { auto it = ctx.begin(); @@ -259,7 +259,7 @@ struct std::formatter return it; } - template + template auto format(routemon::util::zstring_view s, FmtContext& ctx) const -> FmtContext::iterator { -- cgit v1.3.1