Let's say we have a function:
void foo (int a = 0, int b = 1);
Now I want to call foo()
with some value for b
. In this case I have to write down the default value for a
, which may require me to look into the header file.
Is it possible to avoid it by passing some place holder which will automatically pass the default value (something like auto
)?