Hi,
I am trying to create an std::map, one of its elements is an std::set:
I'm unable to compile this, the insert() function isn't accepting the std::set as a parameter type.Code:string key = "a1"; set<int> setone; map<string,set<int>> mapname; setone.insert(1); setone.insert(2); setone.insert(3); mapname.insert(key,setone);
How should I create a map which has std::sets as the second element type?
Many thanks for any advice