
11 Jul
2006
11 Jul
'06
9:03 p.m.
Daryle Walker wrote:
If you make a fake order for "std::complex<>", would you compare real components then imaginary components, or would you use magnitude then angle?
1 < -2 or 100i < 1? Defining operator< for complex numbers is wrong, as there's no sensible definition. But for many types (such as smart pointers) there certainly is.