Closed paladin-t closed 7 years ago
It's intended behavior. The iterator is marked as input_iterator_tag. https://github.com/iwongu/sqlite3pp/blob/master/headeronly_src/sqlite3pp.h#L283 http://en.cppreference.com/w/cpp/concept/InputIterator
It's unfortunate that we cannot catch it in compile time.
Each time a
query::query_iterator
is constructed, the command should be reset. I found this issue when I was trying to check whether a query results empty, then practically iterate with it, but the iteration state is reserved crossing iterators: