Your
shared_ptr
s don't manage i
. Each contains its own copy of i
.
shared_ptr
s don't manage i
. Each contains its own copy of i
.