Correct retrieval of the std::map as a reference