This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]