- (aFindFeature->second)[theAttribute] = std::pair<std::string, std::string>(theSwitchId, theCaseId);
+ std::map<std::string, std::pair<std::string, std::set<std::string> > >::iterator aFindAttrID =
+ aFindFeature->second.find(theAttribute);
+ if (aFindAttrID == aFindFeature->second.end()) {
+ aFindFeature->second[theAttribute] =
+ std::pair<std::string, std::set<std::string> >(theSwitchId, std::set<std::string>());
+ aFindAttrID = aFindFeature->second.find(theAttribute);
+ }
+ aFindAttrID->second.second.insert(theCaseId);