3 ms·
I think you misunderstand. When I see, in a function like yours void function(int const * const value) it worries me because it shows me that the writer doe
by duncanj 16y ago
I think you misunderstand. When I see, in a function like yours
void function(int const * const value)
it worries me because it shows me that the writer doesn't know the meaning of const. There is no added value of this declaration over
void function(int const *value)
or the more commonly seen
void function(const int *value)
The only thing that has changed in your code is that the implementor of the function can't modify his own private copy of the pointer.