Merge pull request #5894 from Icinga/remove-string_iless

Remove string_iless
This commit is contained in:
Gunnar Beutner 2017-12-20 11:33:39 +01:00 committed by GitHub
commit a236a5a582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -506,23 +506,6 @@ inline String::ConstIterator range_end(const String& x)
return x.End();
}
struct string_iless : std::binary_function<String, String, bool>
{
bool operator()(const String& s1, const String& s2) const
{
return strcasecmp(s1.CStr(), s2.CStr()) < 0;
/* The "right" way would be to do this - however the
* overhead is _massive_ due to the repeated non-inlined
* function calls:
return lexicographical_compare(s1.Begin(), s1.End(),
s2.Begin(), s2.End(), boost::algorithm::is_iless());
*/
}
};
}
namespace boost