bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

no matching function for call to `ptr_fun(<unknown type>) ?


From: Peter Kapinos
Subject: no matching function for call to `ptr_fun(<unknown type>) ?
Date: 12 Mar 2002 10:53:54 -0800

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));

}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]