Struct containing a Map in a Map? (C++/STL)
- by karok
I was wondering if it was possible to create a struct containing a number of variables and a map in a map.
What I have at the moment:
typedef std::map<std::string,double> lawVariables;
struct ObjectCustomData {
std::string objectType;
bool global_lock;
std::map<std::string, lawVariables> lawData;
};
This…