E
Esteban Osses
Hi all,
If I have this code:
{
const int& c = 10;
// ...
}
I can read `c' anywhere in this scope, and I can always modify its
value via `const_cast<int&>(c)'
my questions are:
is there anything wrong with that declaration of `c' or using `c' later
in the program? if not, is there anything good on that declaration, any
advantage or something?
Thanks
If I have this code:
{
const int& c = 10;
// ...
}
I can read `c' anywhere in this scope, and I can always modify its
value via `const_cast<int&>(c)'
my questions are:
is there anything wrong with that declaration of `c' or using `c' later
in the program? if not, is there anything good on that declaration, any
advantage or something?
Thanks