Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 1999-11-09 20:04:13


> Well, what would you want it to do, compare the pointers
> or the contained objects? That's a good enough reason as
> far as I'm concerned.

Hmm. I had assumed that given this

    shared_ptr<X> a;
    shared_ptr<X> b;

that this

    a == b

would compare the pointers and this

    *a == *b

would compare the objects.

It seems a bit extreme to leave this up to each individual programmer to
decide. But I'd like to hear others' thoughts on the matter.

    -- Darin


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