O
Ollej Reemt
Hello,
I would like to know if there is a difference in c++ between the
following two method-declarations:
void Method();
and
void Method(void);
I know there is a difference in C (the first case means the function may
have parameters, but they are not yet defined?).
But how is the semantik in C++? Is there a difference or are both
declarations equal in _every_ case?
I would be glad to get an answer to this question (and perhaps a
reference where this topic is explained (C++-standard?)).
Regards
ollej
I would like to know if there is a difference in c++ between the
following two method-declarations:
void Method();
and
void Method(void);
I know there is a difference in C (the first case means the function may
have parameters, but they are not yet defined?).
But how is the semantik in C++? Is there a difference or are both
declarations equal in _every_ case?
I would be glad to get an answer to this question (and perhaps a
reference where this topic is explained (C++-standard?)).
Regards
ollej