From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-03-15 16:08:21
From: "beatlebum1967" <beatlebum1967_at_[hidden]>
> Thanks to this group I have figured out how to use boost::bind in
> conjunction with for_each to call a member function for each pointer
> in a container. Now I would like to use a similar idiom to sum the
> value of a member given a container of boost::shared_ptrs e.g.
> class SomeClass
> long m_Long;
> std::vector<boost::shared_ptr<SomeClass> > LongVec;
> Use std::count to sum the values of SomeClass::m_Long in LongVec.
This is not supported by bind/mem_fn, although I'll probably add it at some
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk