We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51aea56 commit 945509aCopy full SHA for 945509a
1 file changed
code/include/rlbox.hpp
@@ -788,12 +788,20 @@ BinaryOpWrappedRhs(&);
788
BinaryOpWrappedRhs(|);
789
BinaryOpWrappedRhs(<<);
790
BinaryOpWrappedRhs(>>);
791
+
792
+// GCC10.1 to GCC13 has a bug where it selects the wrong overload of operator==
793
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114549 . However C++ 20 also
794
+// provides reverse comparisons by default, and so we no longer need to define
795
+// them. Thus, from C++ 20, we do not define the reverse operators.
796
+#if __cplusplus < 202002L
797
BinaryOpWrappedRhs(==);
798
BinaryOpWrappedRhs(!=);
799
BinaryOpWrappedRhs(<);
800
BinaryOpWrappedRhs(<=);
801
BinaryOpWrappedRhs(>);
802
BinaryOpWrappedRhs(>=);
803
+#endif
804
805
#undef BinaryOpWrappedRhs
806
807
#define BooleanBinaryOpWrappedRhs(opSymbol) \
0 commit comments