20 Apr
2005
20 Apr
'05
9:47 p.m.
Mathieu De Zutter wrote:
std::for_each(renderRegions.begin(), renderRegions.end(), boost::bind(&Region::render, _1, <t, foo, si));
but si doesn't get modified, while it should be passed as reference.
You need to wrap foo and si in a ref(). std::for_each(renderRegions.begin(), renderRegions.end(), boost::bind(&Region::render, _1, <t, boost::ref(foo), boost::ref(si))); KevinH -- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com