# | Line 87 | Line 87 | void SectionParserManager::parse(std::istream& input, | |
---|---|---|
87 | //invoke parser | |
88 | for (i = sectionParsers_.begin(); i != sectionParsers_.end(); ++i) { | |
89 | if (i->isActive) { | |
90 | + | //C++ standard does not guarantee seekg reset EOF, in that case, seekg will fail |
91 | + | //It is always a good idea to call clear() before seek |
92 | + | input.clear(); |
93 | input.seekg(i->offset); | |
94 | (i->sectionParser)->parse(input, ff, i->lineNo); | |
95 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |