Details
-
Bug
-
Resolution: Done
-
Major - P3
-
0.2.0
-
None
Description
For empty documents, a la
auto value = builder::stream::array{} << finalize;
|
auto view = value.view();
|
// view().begin() != view().end(); |
This is because we don't check the return value of bson_iter_next() when we first initialize the iterator, so users can end up with invalid iterators.
We should check the return value
Attachments
Issue Links
- is duplicated by
-
CXX-809 Investigate SO question about handling empty arrays
-
- Closed
-