I know that lvalues can be converted to const reference. I am curious if I can get a pointer to these lvalues.
If i write
const int* p = &3;
I get this error. Nonetheless,
const int* p = &((const int&)3);
it compiles. In this case, the result * p is guaranteed to be 3?
source
share