Shared pointer to an immutable type has value semantics
Sean Parent gave a talk at Going Native 2013 titled Inheritance Is The
Base Class of Evil. At 20 minutes, 50 seconds in, he makes the statement
that a shared pointer to an immutable (const) type has value semantics.
What exactly does this mean? Why is it any different than a shared pointer
to a mutable (non-const) type?
No comments:
Post a Comment