Hi i have a map
std::map<std::pair<int, int>, Group*> map = initialize_map(gm1.size);
and i want to store the value as reference to struct , i initialize it and have it ready in main but when i pass the map to a function those values are changed
here i pass the map to function
this is the function
void print_output(std::map<std::pair<int, int>, Group*> &map, int size)