prog.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
prog.cpp:28:3: error: no matching function for call to 'conv'
conv(f1),
^~~~
prog.cpp:17:23: note: candidate template ignored: could not match 'function<type-parameter-0-0 (int)>' against 'int (*)(int)'
function<string(int)> conv(function<T(int)> f) {
^
3 warnings and 1 error generated.