I'm new to C++ and I want to write code like std::invoke(std::stoi, "a") but I got some error:
No matching function for call to 'invoke'clang(ovl_no_viable_function_in_call)
functional(85, 5): Candidate template ignored: couldn't infer template argument '_Callable'
So I am confused. Could anyone tell me why I can't call std::stoi by std::invoke?
I think it is about default parameters or overloaded functions.