From 4ca9a5754044c81224781c0ab26eb2678142b250 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 25 Aug 2019 21:22:42 -0400 Subject: [PATCH] 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 --- hecl/include/hecl/hecl.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index 80ff77f68..28a0ba3c8 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -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 }; /**