I'm now debugging code but need to keep binary compatibility. There now is a modification about the default value of function parameter.
void functionName(const type parameter = class::A::getValue());
Now I want to just change it like this :
void functionName(const type parameter);
Is it still binary compatibility?
Default parameters don't change the type of a function. gcc 4.9.1 compiles this code without warnings:
Re-declaring
f
to take a default parameter value is allowed here, which means that its linkage is unchanged. So you'll be OK.