Consider the following function template:
template <typename T1, typename T2>
void foo(T1 a, T2 b){// Do something.}
Now assume that I want T1 to be int, but T2 to be deduced by the compiler depending on the type of b. Something like foo<int,...>(1,b). Is it possible?
Thanks!