This is more of a general question:
Is there any point in making a function parameter const if it is being passed by value?
In a code I am studying, I see a lot of the following:
void some_function(const std::vector<double> some_vec);
std::vector is passed by value, so what then is the point of the const?
Like I would understand if the function was instead passing the vector by reference as such:
void some_function(const std::vector<double> &some_vec);
but I see no point in the const in the former.