|
Boost : |
From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-07-10 18:11:32
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov
> Sent: Monday, July 10, 2006 2:58 PM
> To: boost_at_[hidden]
> >>> Looking at <http://www.boost.org/libs/smart_ptr/shared_ptr.htm>,
> >>> i.e. the Boost version, it seems that the authors fell into the
> >>> "fake operator <" trap. If any of those authors are reading this,
> >>> can you tell us why you added the fake operator instead of a
> >>> custom-named comparison class?
> >>
> >> shared_ptr defines operator< for map<shared_ptr<>, V> to work. What
> >> do you mean by "fake"?
> >
>
> I know what I did, but this still doesn't tell me what "fake"
> means in this
> context. What objective properties make an operator< "fake"?
Isn't shared_ptr<T> is supposed to be like T* which has ordering? In
this case, it's a non-issue no?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk