-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
this conversion operator seems nice, but is very error prone.
example:
options::find opts;
find.sort(document{} << "foo" << 1 << finalize);
col.find({}, opts);
The temporary value created is converted to a view and then stored in the options struct. Then it is left dangling, which causes a crash in the subsequent call to find.
- is duplicated by
-
CXX-738 Add variant type for bson document view_or_value
- Closed