|
|
|
|
|
by wakawaka28
798 days ago
|
|
This is a noob mistake, not a huge mystery. It's not always wrong to store raw pointers to STL container elements, but if you do then you must take care of reallocations. If you find storing pointers to elements too perilous, you should probably just make a container of pointers instead. |
|
The interesting part is why it worked in VS2013 but failed in VS2022.