This revision was automatically updated to reflect the committed changes.
Closed by commit rCXX336141: [Win32] Overload ==, != for locale_t and long long
(authored by pirama, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48749?vs=153411&id=153778#toc
Repository:
rCXX libc++
https://reviews.llvm.org/D48749
Files:
include/support/win32/locale_win32.h
Index: include/support/win32/locale_win32.h
===================================================================
--- include/support/win32/locale_win32.h
+++ include/support/win32/locale_win32.h
@@ -46,6 +46,10 @@
return __left.__locale == nullptr && __right == 0;
}
+ friend bool operator==(const locale_t& __left, long long __right) {
+ return __left.__locale == nullptr && __right == 0;
+ }
+
friend bool operator==(const locale_t& __left, std::nullptr_t) {
return __left.__locale == nullptr;
}
@@ -66,6 +70,10 @@
return !(__left == __right);
}
+ friend bool operator!=(const locale_t& __left, long long __right) {
+ return !(__left == __right);
+ }
+
friend bool operator!=(const locale_t& __left, std::nullptr_t __right) {
return !(__left == __right);
}
Index: include/support/win32/locale_win32.h
===================================================================
--- include/support/win32/locale_win32.h
+++ include/support/win32/locale_win32.h
@@ -46,6 +46,10 @@
return __left.__locale == nullptr && __right == 0;
}
+ friend bool operator==(const locale_t& __left, long long __right) {
+ return __left.__locale == nullptr && __right == 0;
+ }
+
friend bool operator==(const locale_t& __left, std::nullptr_t) {
return __left.__locale == nullptr;
}
@@ -66,6 +70,10 @@
return !(__left == __right);
}
+ friend bool operator!=(const locale_t& __left, long long __right) {
+ return !(__left == __right);
+ }
+
friend bool operator!=(const locale_t& __left, std::nullptr_t __right) {
return !(__left == __right);
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits