Why can’t std::apply figure out which overload I intend to use? Only one of then will work!

Consider the following: void f(int, int); void f(char*, char*); void test(std::tuple<int, int> t) { std::apply(f, t); // error } The compiler complains that it cannot deduce the type of the first parameter. I’m using std::apply here, but the same arguments apply to functions like

Click here to read the article