Steven Schveighoffer wrote:
I have shown examples of how const does not guarantee an object's state doesn't change.
Yes, as is well documented, const is a read only view. It is not immutable. That is why immutable is a separate attribute.
Steven Schveighoffer wrote:
I have shown examples of how const does not guarantee an object's state doesn't change.
Yes, as is well documented, const is a read only view. It is not immutable. That is why immutable is a separate attribute.