Merge pull request #22 from lioncash/ifdef

hecl/hecl: Remove windows ifdef in CaseInsensitiveCompare
This commit is contained in:
Phillip Stephens 2019-08-25 18:25:53 -07:00 committed by GitHub
commit b235a8fefe
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
};
/**