prog.cpp: In function ‘int main()’:
prog.cpp:17:21: error: no matching function for call to ‘f(std::map<int, int>::iterator)’
prog.cpp:17:21: note: candidate is:
prog.cpp:12:5: note: template<class A, class B> int f(typename std::map<A, B>::iterator)
prog.cpp:12:5: note: template argument deduction/substitution failed:
prog.cpp:17:21: note: couldn't deduce template parameter ‘A’