prog.cpp: In function ‘int main()’:
prog.cpp:12:65: error: no matching function for call to ‘transform(std::basic_string<char>::iterator, std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)’
prog.cpp:12:65: note: candidates are:
In file included from /usr/include/c++/4.7/algorithm:63:0,
from prog.cpp:4:
/usr/include/c++/4.7/bits/stl_algo.h:4940:5: note: template<class _IIter, class _OIter, class _UnaryOperation> _OIter std::transform(_IIter, _IIter, _OIter, _UnaryOperation)
/usr/include/c++/4.7/bits/stl_algo.h:4940:5: note: template argument deduction/substitution failed:
prog.cpp:12:65: note: couldn't deduce template parameter ‘_UnaryOperation’
In file included from /usr/include/c++/4.7/algorithm:63:0,
from prog.cpp:4:
/usr/include/c++/4.7/bits/stl_algo.h:4977:5: note: template<class _IIter1, class _IIter2, class _OIter, class _BinaryOperation> _OIter std::transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation)
/usr/include/c++/4.7/bits/stl_algo.h:4977:5: note: template argument deduction/substitution failed:
prog.cpp:12:65: note: candidate expects 5 arguments, 4 provided