Problems with lvalue?

If the object is returned by value as a const ,then the result cannot be modified as an lvalue??
Wat does this mean??
Consider this statement
a = 4;

a is the left value, and 4 is the right value (lvalue and rvalue).

It should be clear that the left value has to be something that has an address where that value can be changed.

And is should be clear that this doesn't apply to right values, they can be compile-time constants, runtime-constants or values with addresses.

You appear to be attempting to use a runtime-constant entity on the left side of an assignment.
Topic archived. No new replies allowed.