
21 Dec
2011
21 Dec
'11
12:07 a.m.
On 20 December 2011 17:53, Jayden Shui
Do I need std::set/map< shared_ptr
, your_compare > to do it, since it is the B* shared? Thanks a lot.
Yes. In addition, you'll have to erase then insert whenever you change the object which scoped_ptr<B> holds, unless you have some other way of guaranteeing that B::Name() won't change when the object changes. Multiindex might be easier to use in this respect. -- Nevin ":-)" Liber mailto:nevin@eviloverlord.com (847) 691-1404