You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libc++ provides a specialization of std::hash that works for arbitrary instantiations of std::basic_string. This can produce incorrect behavior for basic_string instantiations with custom character traits that override equality (e.g. traits for case-insensitive comparison). Since the standard only requires that hash for for the typedefed instantiations (e.g. hash, hash, etc), libc++ should not support hashing basic_strings with custom character traits to avoid incorrect behavior.
The text was updated successfully, but these errors were encountered:
Extended Description
libc++ provides a specialization of std::hash that works for arbitrary instantiations of std::basic_string. This can produce incorrect behavior for basic_string instantiations with custom character traits that override equality (e.g. traits for case-insensitive comparison). Since the standard only requires that hash for for the typedefed instantiations (e.g. hash, hash, etc), libc++ should not support hashing basic_strings with custom character traits to avoid incorrect behavior.
The text was updated successfully, but these errors were encountered: