Default argument in the middle of parameter list?
That code would work if in the very first declaration of the function, the last parameter has default value, something like this: //declaration void error(char const *msg, bool showKind, bool exit = false); And then in the same scope you can provide default values for other arguments (from right side), in the later declaration, as: … Read more