Add equality operators

main
Micke Nordin 2 years ago
parent 6db1b1e943
commit e5cd0fc7d1
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -85,4 +85,6 @@ public:
r = z.r;
i = z.i;
}
const bool operator==(const cnumber &z) const { return r == z.r && i == z.i; }
const bool operator!=(const cnumber &z) const { return r != z.r || i != z.i; }
};

Loading…
Cancel
Save