The default parameter should be after the parameter without default parameter in the parameter list.
Only one of the default parameters can be filled in the declaration or definition, otherwise an error will be reported.
In the case of quoting header files, not writing default parameters in the function declaration in .h will cause an error.
C++ default parameter memo
Guess you like
Origin blog.csdn.net/sinat_27382047/article/details/106991940
Recommended
Ranking