Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/boson/bson_archiver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ class BSONOutputArchive : public cereal::OutputArchive<BSONOutputArchive> {
} else {
// Set the key of this element to the name stored by the archiver.
if (!_dotNotationMode || _embeddedNameStack.empty() || _arrayNestingLevel > 0) {
_bsonBuilder.key_view(_nextName);
if (!isNewNode)
_bsonBuilder.key_view(_nextName);
} else {
// If we are in dot notation mode and we're not nested in array, build the name of
// this key.
Expand Down