We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fd62b commit 4b053d2Copy full SHA for 4b053d2
inst/include/cpp4r/complexes.hpp
@@ -326,7 +326,9 @@ class r_vector<r_complex>::proxy {
326
327
#if !CPP4R_HAS_CXX20
328
// C++20 automatically generates operator!= from operator==
329
- friend bool operator!=(const proxy& lhs, const r_complex& rhs) { return !(lhs == rhs); }
+ friend bool operator!=(const proxy& lhs, const r_complex& rhs) {
330
+ return !(static_cast<r_complex>(lhs) == rhs);
331
+ }
332
#endif
333
334
private:
0 commit comments