如何选择正确的error()成员函数?我需要以某种方式施展吗?
using namespace std;
struct test
{
int error();
void error(int x);
int fun();
};
int main() {
auto f1 = &test::error; // how to pick the correct function?
auto f2 = &test::fun; // works
}
Run Code Online (Sandbox Code Playgroud)