#include #include #include #include int main(int argc, char** argv) { std::string s("foo"); std::cout << std::count_if(s.begin(), s.end(), std::isalpha) << std::endl; return 0; } /* test.cpp: In function ‘int main(int, char**)’: test.cpp:8: error: no matching function for call to ‘count_if(__gnu_cxx::__normal_iterator, std::allocator > >, __gnu_cxx::__normal_iterator, std::allocator > >, )’ */