Core: Added comparison Complex == double

This commit is contained in:
Mirek Fidler 2023-04-25 17:37:20 +02:00
parent e11e48e88e
commit 5dd7e2a2e1

View file

@ -17,6 +17,8 @@ struct Complex : std::complex<double>
bool operator==(const Complex& c) const { return (const C&)(*this) == (const C&)c; }
bool operator!=(const Complex& c) const { return (const C&)(*this) != (const C&)c; }
bool operator==(double x) const { return (const C&)(*this) == x; }
bool operator!=(double x) const { return (const C&)(*this) != x; }
int Compare(const Complex& c) const { NEVER(); return 0; }