diff options
Diffstat (limited to 'core/fxcrt/string_view_template.h')
-rw-r--r-- | core/fxcrt/string_view_template.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fxcrt/string_view_template.h b/core/fxcrt/string_view_template.h index 346e5a469d..ac376ff8a0 100644 --- a/core/fxcrt/string_view_template.h +++ b/core/fxcrt/string_view_template.h @@ -227,11 +227,14 @@ template <typename T> inline bool operator==(const T* lhs, const StringViewTemplate<T>& rhs) { return rhs == lhs; } - template <typename T> inline bool operator!=(const T* lhs, const StringViewTemplate<T>& rhs) { return rhs != lhs; } +template <typename T> +inline bool operator<(const T* lhs, const StringViewTemplate<T>& rhs) { + return rhs > lhs; +} extern template class StringViewTemplate<char>; extern template class StringViewTemplate<wchar_t>; |