When the function is called with no argument for the corresponding parameter, the default argument is evaluated.
In a default argument, a parameter must not appear as a potentially evaluated expression.
A function's parameters declared before a default argument are in scope and can obscure the namespace and class member name.
It provides the following example:
int h(int a, ...READ MORE
Jun 7, 2022
in C++
by
Damon
• 4,960 points
•
569 views