Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-03-22 09:12:03


From: "Terence Wilson" <tez_at_[hidden]>
> Thanks to PeterD I am using calls of this form in my code:
>
> std::vector<boost::shared_ptr<SomeClass> > Vec;
>
> std::for_each(Vec.begin(), Vec.end(), boost::bind(&myClass::myMethod,
> _1, boost::ref(DownloadListView), boost::ref(ParentTreeItem)));
>
> now I would like to use the same technique to call a method expecting 2
> reference arguments, can someone help with the correct syntax? I'm out
> of permutations to try. If it matters, I'm using VC++ 7.0.

Could you please provide a more complete example? What is SomeClass? How is
myMethod defined? What are you trying to do? :-)


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