I am trying to bind an std::count_if function, so I can change the iterators, but the predicate (the lambda function) remains the same. I tried like this, but I got an error