P.8 has two uses of:
void f(char* name) {
...
}
Per Con.3 shouldn't name be declared const char * ?
EDIT: Noting also that Con.1 recommends not making function parameters const but this is later contradicted by Con.3 for pointer parameters, and is also touched on in Con.2. Perhaps Con.1 should be updated to make this guidance specific to POD values?
P.8 has two uses of:
Per Con.3 shouldn't
namebe declaredconst char *?EDIT: Noting also that Con.1 recommends not making function parameters
constbut this is later contradicted by Con.3 for pointer parameters, and is also touched on in Con.2. Perhaps Con.1 should be updated to make this guidance specific to POD values?