Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2000-03-16 12:14:30


on 3/15/00 8:52 PM, Greg Colvin at gcolvin_at_[hidden] wrote:

> The compiler is looking for an operator<, which shared_ptr
> doesn't have. It does have a less functor, which you should
> be able to supply as a further template argument.

In case it's not clear to other from Greg's response, this indicates a bug
in VC++ 5.0's implementation of std::set, which is supposed to use std::less
rather than using < directly. The workaround is to pass std::less<
boost::shared_ptr<int> > explicitly as a template argument as he suggests.

    -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk