In C ++, I can have multiple declarations of the following functions:
void Func (int); void Func (int);
And still, VC ++ 2010 complains when I do the same for member functions (did I include the definition):
class Test { void Func (int); void Func (int);
I could not find anything on the Internet about announcements with several member functions, be it their legal, illegal, specific VC ++, ect ... Is there any way around this? It is illegal?
Now, why do I want to do this? Not a single project, in particular, just played with different ways of registering functions. In other projects, I had to register functions / classes and use less hack-ish, but more tedious methods and just tried (for fun) to use different methods using macros / templates.
Any ideas or thoughts? In particular, on the above question, as well as on the registration of functions / classes.
Thanks in advance for your time;)
c ++
Kaisha
source share