I wanted to ask about memory in structs. I have a struct that contains a vector that when I try to add more than a certain number of elements (in my case, shared_ptrs of another struct I made), seg faults. Do I need to allocate specific memory for the vector?
If anyone has any idea at why this is happening, it would be very appreciated.
Thank you