D:\keyboard4_test>g++ Test3.cpp
Test3.cpp: In member function 'void Test::generate()':
Test3.cpp:24:68: error: no matching function for call to 'transform(std::basic_s
tring<char>::iterator, std::basic_string<char>::iterator, std::back_insert_itera
tor<std::vector<int> >, <unresolved overloaded function type>)'
transform(str.begin(), str.end(), back_inserter(p), Test::char2int);
^
Test3.cpp:24:68: note: candidates are:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62:0,
from Test3.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4938:5: note: _OIter
std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter = __gnu_cxx
::__normal_iterator<char*, std::basic_string<char> >; _OIter = std::back_insert_
iterator<std::vector<int> >; _UnaryOperation = int (Test::*)(char)]
transform(_InputIterator __first, _InputIterator __last,
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4938:5: note: no kn
own conversion for argument 4 from '<unresolved overloaded function type>' to 'i
nt (Test::*)(char)'
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4975:5: note: templat
e<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std
::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)
transform(_InputIterator1 __first1, _InputIterator1 __last1,
^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:4975:5: note: templ
ate argument deduction/substitution failed:
Test3.cpp:24:68: note: candidate expects 5 arguments, 4 provided
transform(str.begin(), str.end(), back_inserter(p), Test::char2int);
^ |