Herb Suttter C ++ encoding standards say: “It’s good practice to remove unused argument names in functions to write a null warning program.
Example:
int increment(int number, int power=0){
return number++;
}
it should be
int increment(int number, int =0){
return number++;
}
If there is an argument "unused variables" for the argument power. This works great for programs (no compilation errors), so new function definitions will
int increment(int number, int =0)
So what does the int=0compiler mean ?
source
share