The solution to that is to either: 1) If you're gonna return pointers, don't use an allocation scheme that invalidates pointers in the implementation of map_t. 2) If you want to reallocate and move memory, don't return…
The solution to that is to either: 1) If you're gonna return pointers, don't use an allocation scheme that invalidates pointers in the implementation of map_t. 2) If you want to reallocate and move memory, don't return…