string: use static operator() for simple transform equality functors

This commit is contained in:
Danny Robson 2023-07-04 11:20:44 +10:00
parent d0cc65db50
commit e7a2c18481
1 changed files with 2 additions and 2 deletions

View File

@ -401,10 +401,10 @@ namespace cruft::string::equality {
/// \tparam TransformV A character transform function
template <char (*TransformV)(char) noexcept>
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;