You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a nested unordered_map with different enums (std::unordered_map<EnumA, std::unordered_map<EnumB, int>>). Whenever I'm creating a variable of this type it leads to a multitude of errors, with a message: see reference to class template instantiation. I've tried adding the following before #include "enum.h" for EnumA and EnumB but that doesn't work:
I have a nested unordered_map with different enums (
std::unordered_map<EnumA, std::unordered_map<EnumB, int>>
). Whenever I'm creating a variable of this type it leads to a multitude of errors, with a message:see reference to class template instantiation
. I've tried adding the following before#include "enum.h"
forEnumA
andEnumB
but that doesn't work:Is it possible to create a map without having to follow instructions over here? Since I need to change the values in the map a lot.
The text was updated successfully, but these errors were encountered: