This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
no matching function for call to `ptr_fun'
- From: pakapinos at att dot net
- To: bug-gcc at gnu dot org
- Date: Mon, 18 Mar 2002 17:37:08 +0000
- Subject: no matching function for call to `ptr_fun'
I'm trying to compile the following on ALPHA TRU-64 5.1
using gcc 3.04. I keep getting the following error:
test.cxx: In function `int main()':
test.cxx:17: no matching function for call to `ptr_fun
(<unknown type>)'
Any help would be appreciated. Thanks.
#include <ctype.h>
#include <functional>
#include <algorithm>
#include <deque>
#include <locale>
using namespace std;
int main ()
{
int init[7] = {1,2,3,4,5,6,7};
deque<int> d(init, init+7);
find_if (d.begin(), d.end(), std::ptr_fun(isspace));
}