use qi - parser to work with 0 speed file lines

This commit is contained in:
karenzshea
2017-02-13 14:52:50 +01:00
committed by Patrick Niklaus
parent 23b07c9197
commit 1bace1288d
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ template <typename Key, typename Value> struct CSVFilesParser
qi::rule<Iterator, std::pair<Key, Value>()> csv_line =
(key_rule >> ',' >> value_source) >> -(',' >> *(qi::char_ - qi::eol));
std::vector<std::pair<Key, Value>> result;
const auto ok = qi::parse(first, last, (csv_line % qi::eol) >> *qi::eol, result);
const auto ok = qi::parse(first, last, -(csv_line % qi::eol) >> *qi::eol, result);
if (!ok || first != last)
{