Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-09 12:27:32


From: "William E. Kempf" <wekempf_at_[hidden]>
> > From: "Peter Dimov" <pdimov_at_[hidden]>
>
> > I think that a reasonable requirement that we already mentioned several
> > times is that the ID should be CopyConstructible, Assignable and
> > LessThanComparable, for use in sets/maps.
>
> Should it truly be LessThanComparable, or should it follow the design of
> std::type_info with a before() method?

Something that meets the requirements stated above can be used in

std::map<K, V>

as a 'K'... but since boost::thread is not CopyConstructible, it doesn't
matter whether it's LessThanComparable. :-)


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