Boost logo

Boost :

Subject: [boost] [shared_ptr] Why operator< uses internal_less?
From: dariomt_at_[hidden]
Date: 2008-10-09 11:06:23

I see that operator== and operator!= are implemented comparing the pointer
inside the shared_ptr's using get(), but operator< uses _internal_less, that
does a different thing.

I thought that operator< would also be implemented using get(), so please,
can you share the rationale behind the need for _internal_less?


Boost list run by bdawes at, gregod at, cpdaniel at, john at