Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-11-10 12:22:31


Dave Abrahams wrote:

> P.P.S. The definition of op<, etc. for shared_ptr should use std::less<T*>,
> which is well defined for all pairs of T* (just using < is not).

The definition of less<shared_(ptr|array)> should do that. < should
not be defined for these types, because you cannot have two unequal
shared_(ptr|array) pointing in the same array/struct.

-- 
Valentin Bonnard

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