From: Darin Adler (darin_at_[hidden])
Date: 2000-03-16 14:45:44
on 3/16/00 10:44 AM, Beman Dawes at beman_at_[hidden] wrote:
> Note that the Standard Library's default Compare template parameter (class
> Compare = less<Key>) will not work for shared_ptr as it requires operator<
> which is not defined for shared_ptr.
That's not true, though. The default Compare template parameter will work if
the compiler supports partial specialization, because the less<shared_ptr>
is a specialization of std::less.
> The functor less< boost::shared_ptr<T> > is supplied
> instead (compiler must support partial specialization).
The functor that is supplied is a specialization of std::less and would only
have to be passed explicitly in the case of a compiler or library that is
I think you should reword what you added.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk