Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Const means the object cannot be altered via the const reference, but can be altered by mutable reference to the same object.

Given that this discussion is already going deep into the implementation level, isn't it possible to flag an object as immutable if it's declared and initialized as a const object, or is a const reference to said const object?



If it is declared as const, yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: