|
Boost : |
From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-04-21 08:35:34
"Fredrik Blomqvist" <fredrik_blomqvist_at_[hidden]> wrote in message
news:d441u6$oco$1_at_sea.gmane.org...
| Pavel Chikulaev wrote:
| > "Fredrik Blomqvist" <fredrik_blomqvist_at_[hidden]> wrote in message
| > news:d43o6f$oia$1_at_sea.gmane.org...
| >> I can't find any code or docs dealing with comparison in the current
| >> CVS. Weren't ptr_container supposed to have deep comparison
| >> semantics?
| > Even if it had, you should make sure that your classes have properly
| > implemented comparison operators.
| Yes of course, but they still wont be used unless the container fwds to
| them.
|
| > Otherwise only base class's parts
| > will be compared, and since such behaviour is undesirable and most
| > users don't need any comparison operators or simply won't write them
| > or will write them polymorphically incorrect,
| hmm, yes, I can see how it could be fairly error prone..
|
| > Thorsten, I guess, decided not to have comparison operators at all.
no.
| My post was trigged by a note in the docs(?) suggesting they were supposed
| to be added. But now I can't seem to find a link to it again...
| (perhaps Thorsten updated some docs very recently?)
well, yeah, the cvs docs are almost up to date.
anyway, the comparison operators are implemented as members using
boost.operators.
I'll opdate the test to test these operators.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk