Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-05-26 20:56:17

----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>

> From: "David Abrahams" <abrahams_at_[hidden]>
> > On first sight I'd say Peter may have uncovered a defect in the
> I
> > don't think we meant to say that about std::less<>.
> That depends. The problem is that std::less is 'overloaded' to mean two
> things: 1) operator< and 2) the default ordering policy for associatives.
> These two roles should, IMHO, be separated.

Ah, I see, and I think you're right. I didn't really see role 1 because I
don't use things like bind2nd nearly as much as I use associative
containers, but one only has to write

  std::find_if(a, b, std::bind2nd(std::less<int>(), 2));

to come around to your point of view.


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