Is it possible to use previous arguments in a functions parameter list as the default value for later arguments in the parameter list? For instance,
void f(
As a potential workaround, you could do:
const int defaultValue = -999; // or something similar void f( int a, int b = defaultValue, int c = defaultValue ) { if (b == defaultValue) { b = a; } if (c == defaultValue) { c = b; } //... }