- for (std::multimap<std::string, std::string>::iterator pos =
- this->entries.find(key);
- pos != this->entries.end(); pos++) {
- values.push_back(pos->second);
+ std::pair<std::multimap<const std::string, const std::string>::const_iterator, std::multimap<const std::string, const std::string>::const_iterator> range = this->entries.equal_range(key);
+ for (std::multimap<const std::string, const std::string>::const_iterator pos =
+ range.first; pos != range.second; pos++) {
+ values.push_back(pos->second);