Open jdreo opened 2 years ago
At the very least, the documentation should mention iterator-based loops and the fact that the first iterator should be tested for the end of row. In which case, adding an operator==
to CellIterator
would be expected.
If the CSV file has an empty line, the parsing ends on a segfault. At least the trailing newline should either be parsed out silently, or give raise to an explicit error rather than a segmentation fault.
Minimal example (can be copy/pasted into
test/main.cpp
):Note that the code above advertises a use-case that was not documented: parsing a table having row headers. In that case, using iterator-based loops makes sense. But the
CellIterator
interface —while functional— lacks the expected interface:operator->
and a postfixoperator++
.