forked from boostorg/unordered
Use the locale in the case insensitive comparison, I really should add a test for this.
[SVN r41951]
This commit is contained in:
@@ -27,7 +27,7 @@ namespace hash_examples
|
|||||||
template <typename String1, typename String2>
|
template <typename String1, typename String2>
|
||||||
bool operator()(String1 const& x1, String2 const& x2) const
|
bool operator()(String1 const& x1, String2 const& x2) const
|
||||||
{
|
{
|
||||||
return boost::algorithm::iequals(x1, x2);
|
return boost::algorithm::iequals(x1, x2, locale_);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
std::locale locale_;
|
std::locale locale_;
|
||||||
|
Reference in New Issue
Block a user