Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-26 06:47:57

From: "David Abrahams" <abrahams_at_[hidden]>

> From: "Gary Powell" <Gary.Powell_at_[hidden]>
> > So now I'm left with overloading less<shared_ptr<string> >, or creating
> > proxy that has an operator<().
> What's wrong with just using your own comparison object:
> map<boost::shared_ptr<std::string>, compare_string_shared_ptr>

A good example why the std::less specialization is dangerous. Programmers
will copy the technique.

Peter Dimov
Multi Media Ltd.

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