R
red floyd
Anybody have any preferences as to declaring primitive type parameter as
const, if the function body doesn't change it?
e.g.:
int f(int x)
{
return x+2;
}
versus
int f(const int x)
{
return x + 2;
}
I'm trying to update a project-wide style guide, and there are
developers who are insistent about the second style.
const, if the function body doesn't change it?
e.g.:
int f(int x)
{
return x+2;
}
versus
int f(const int x)
{
return x + 2;
}
I'm trying to update a project-wide style guide, and there are
developers who are insistent about the second style.