26 Nov
2014
26 Nov
'14
5:43 p.m.
Hi John,
On Wed, Nov 26, 2014 at 12:30 PM,
void FileList::ProcessList() { safeList.IterateList(this->ProcessItem); <-- This is the bad guy the compiler complains about and not sure how to resolve. }
Try: safeList.IterateList([&](FilePtr p) { ProcessItem(p); }); C++ doesn't have any implicit currying, so we can do it explicitly with lambdas (above) or std::bind. HTH, Nate