R
Roy Smith
I've got some legacy code I'm maintaining. There's a method declared in
the class.h file like this:
void foo(unsigned priority);
and it's implemented as:
void myClass::foo (unsigned /* priority */)
{
// body omitted
}
The parameter priority isn't actually used anywhere in the body (I can only
assume it was at one point in the history of the code).
What I don't understand is how this compiles (and compile it does, under 5
different compilers). What does the compiler think the signature of the
method is?
the class.h file like this:
void foo(unsigned priority);
and it's implemented as:
void myClass::foo (unsigned /* priority */)
{
// body omitted
}
The parameter priority isn't actually used anywhere in the body (I can only
assume it was at one point in the history of the code).
What I don't understand is how this compiles (and compile it does, under 5
different compilers). What does the compiler think the signature of the
method is?