prog.cpp: In function 'int main()':
prog.cpp:12:19: error: no matching function for call to 'my_transform(<unresolved overloaded function type>)'
my_transform(f); // cannot deduce the type of f due to overloads
^
prog.cpp:12:19: note: candidate is:
prog.cpp:8:6: note: template<class T> void my_transform(T&&)
void my_transform(T&& functor){}
^
prog.cpp:8:6: note: template argument deduction/substitution failed:
prog.cpp:12:19: note: couldn't deduce template parameter 'T'
my_transform(f); // cannot deduce the type of f due to overloads
^