8 ms·
Except const is not sufficient. It will prevent the reference from being reassigned but the const can still reference a mutable object.
by rlander 11mo ago
Except const is not sufficient. It will prevent the reference from being reassigned but the const can still reference a mutable object.