From: "William E. Kempf" <[EMAIL PROTECTED]> > > From: "Peter Dimov" <[EMAIL PROTECTED]> > > > > 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. > > This misses the need for outputting in diagnostic messages, for one thing.
No, this is an additional requirement that you missed; you already had the output requirement in place. > And all of this can be supplied directly by boost::thread with no need for a > boost::thead::id. Just to clarify, do you mean std::map<boost::thread *, int, dereferenced_compare> map; ? boost::thread itself is not copyable, so it can't be a key. How would this work? void my_function() { thread current; map_type::iterator i = map.find(¤t); // 'get' is fine map[¤t] = 5; // but 'set' is not, as ¤t will become invalid soon } _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost