[CXX-738] Add variant type for bson document view_or_value Created: 11/Nov/15  Updated: 11/Jan/16  Resolved: 14/Dec/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-556 overload methods that accept views to... Closed
Related
related to CXX-739 Add variant type for string_view_or_v... Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

Add a variant type that holds either a bsoncxx::document::value or a bsoncxx::document::view. When a value is given, internal view points to it, otherwise view is passed in. Apply universally within the driver.



 Comments   
Comment by Githook User [ 14/Dec/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-738 Add an example for using view_or_value type
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/d665f420149e712a516365ce1777594dd875f555

Comment by Githook User [ 14/Dec/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-738 Apply view_or_value to the codebase
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/90481bfc6cdb980db526e1887816d180f7678e87

Comment by Githook User [ 14/Dec/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-738 Add document:: and array:: view_or_value types
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/f4e52ecf2f7e2774dddcb97bb4c3830b0f7e12af

Comment by Githook User [ 14/Dec/15 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: CXX-738 Implement a view_or_value variant type
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/98016a48e20060795e1855d41aeb95628d3bdaf0

Comment by Samantha Ritter (Inactive) [ 12/Nov/15 ]

code review: https://github.com/mongodb/mongo-cxx-driver/pull/372

Generated at Wed Feb 07 22:00:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.