Boost logo

Boost :

From: Daniel James (daniel_james_at_[hidden])
Date: 2006-07-11 17:03:18


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk