mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Core: Added comparison Complex == double
This commit is contained in:
parent
e11e48e88e
commit
5dd7e2a2e1
1 changed files with 2 additions and 0 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue