Is it possible to invoke the function of a class based on the fact that it is the only public one ? What I mean:
double res = MyClass().myFunction(n);
double res = MyClass()(n);
double res = MyClass().reflection("myFunction")(n);
But it seems not possible without wasting at least twice the ink to write the function name (function pointer and corresponding string in a map).
Source: Windows Questions C++