3 ms·
From the article: > if you allocate a new object in the storage of the old one, you cannot access the new object through pointers to the old Which implies the
by ectopod 5y ago
From the article:
> if you allocate a new object in the storage of the old one, you cannot access the new object through pointers to the old
Which implies the UB happens in the caller.
- sutuplesu 5y ago> you cannot access the new object through pointers to the old The access in the caller -- `return f.x` -- is not through a pointer.