const conversion
Is it possible to do a conversion from a variable to a constant variable
Yes. It happens implicitly. You can add cv-qualifiers, but not remove them without
const_cast
1 2
|
int x = 0;
int const volatile y = x;
|
Last edited on
Topic archived. No new replies allowed.