no matching function for call to `ptr_fun'

pakapinos@att.net pakapinos@att.net
Mon Mar 18 09:40:00 GMT 2002



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

}



More information about the Gcc-bugs mailing list