[EMAIL PROTECTED] writes: > + if (requires_.empty()) { > + requires_ = req; > + break; > + } > + for (vector<string>::const_iterator it = req.begin(); > + it != req.end(); ++it) { > + if (find(requires_.begin(), requires_.end(), > *it) == requires_.end()) > + requires_.push_back(*it); > + } > break;
Why is it necessary to handle the requires_.empty() case? What about using some other datastructure like map<string,bool> (there is probably something simpler for a set, though)? JMarc