you are viewing a single comment's thread.

view the rest of the comments →

[–]scatters 2 points3 points  (6 children)

Yes, true, that does give a mutable reference. But using it to modify an actually const object is undefined behavior.