Original Post
I have used maps in this way before without any issues, but now I am encountering a segmentation fault that I can't find a solution to.
I have 2 classes, and one of them holds a map of pointers to objects in the other class, with ints as keys (I tried unsigned shorts before then reverted to ints trying to fix it, I will stick with ints for now)
[source lang=cpp]
#include
#include
I have 2 classes, and one of them holds a map of pointers to objects in the other class, with ints as keys (I tried unsigned shorts before then reverted to ints trying to fix it, I will stick with ints for now)
[source lang=cpp]
#include
#include