Hi,
I have question on const variables in function parameters
ex:
void foo(const int& i)
{
}
Apart from we cannot modify 'i' variable, does it have significance with respect to compiler optimization?
Regards,
nkumar
Since it is a reference being passed to a function, not really.
Hi firedraco,
I did not mean reference (it was just an example), in fact any const member in function parameter.
Regards,
Kumar