string: use static operator() for simple transform equality functors
This commit is contained in:
parent
d0cc65db50
commit
e7a2c18481
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user