Boost logo

Boost :

From: Terence Wilson (tez_at_[hidden])
Date: 2002-03-21 18:41:00


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.

Thanks,

Terence.


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