Hacker News new | ask | show | jobs
by rlander 224 days ago
Except const is not sufficient. It will prevent the reference from being reassigned but the const can still reference a mutable object.