Replying to:

@cppcodemonkey.bsky.social Comparable situation in C (I don’t remember C++ very well) would be I think if you had:
int *a;
int *b;
a = something_that_allocs(2);
b = a;
b = something_that_allocs(4);

Now, b has a reference to a different value that a which still points to the old one.

Kuba Suder @mackuba