Boost logo

Boost :

Subject: Re: [boost] Template Help
From: Nate Crookston (nathan.crookston_at_[hidden])
Date: 2014-11-26 12:43:17

Hi John,

On Wed, Nov 26, 2014 at 12:30 PM, <john.klein_at_[hidden]> wrote:
> void FileList::ProcessList()
> {
> safeList.IterateList(this->ProcessItem); <-- This is the bad guy the
> compiler complains about and not sure how to resolve.
> }

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at