Skip to content
Merged
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
1 change: 1 addition & 0 deletions src/bsoncxx/types/bson_value/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ view& view::operator=(const view& rhs) noexcept {
break;
#include <bsoncxx/enums/type.hpp>
#undef BSONCXX_ENUM
default : break;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: I think this is fine and will do what you want; consider also moving it ahead of the include-pasted cases, so that the latter will be indicated as an error instead of your more intentional case. (And, I think it's slightly easier to read, YYMV.)

}

_type = rhs._type;
Expand Down