hecl/hecl: Remove windows ifdef in CaseInsensitiveCompare

This is technically still usable for non-Windows systems, given there's
nothing directly Windows-specific about the operator overload
This commit is contained in:
Lioncash 2019-08-25 21:22:42 -04:00
parent 3daaeac76b
commit 4ca9a57540
1 changed files with 0 additions and 2 deletions

View File

@ -503,13 +503,11 @@ struct CaseInsensitiveCompare {
});
}
#if _WIN32
bool operator()(std::wstring_view lhs, std::wstring_view rhs) const {
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [](wchar_t lhs, wchar_t rhs) {
return std::towlower(lhs) < std::towlower(rhs);
});
}
#endif
};
/**