From e7a2c18481942d16b48c19bb58847501e4fdf103 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 4 Jul 2023 11:20:44 +1000 Subject: [PATCH] string: use static operator() for simple transform equality functors --- string.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/string.hpp b/string.hpp index d6dc8ee6..ca93f3f5 100644 --- a/string.hpp +++ b/string.hpp @@ -401,10 +401,10 @@ namespace cruft::string::equality { /// \tparam TransformV A character transform function template struct transform { - bool operator() ( + static bool operator() ( std::string_view const &a, std::string_view const &b - ) const noexcept { + ) noexcept { if (a.size () != b.size ()) return false;