I define
typedef std::map< int, std::set<int> > SparseMap;
Then I try to insert a pair in that way:
pair<SparseMap::iterator,bool> result;
result = sparseBlue.insert(SparseMap::value_type(row, set(col)) ); //errors
if(result.second)
cout << "Inserted" << endl;
- row and col are integer matrix coordinates
- sparseBlue is declared as
SparseMap sparseBlue;
Why do I get those errors at the line in which I .insert?