[CXX-2066] implement a make_value helper Created: 07/Jul/20  Updated: 28/Oct/23  Resolved: 08/Jul/20

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

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

Issue Links:
Related
related to CXX-2067 Expose bson_value::value type constru... Closed
Epic Link: Client Side Encryption (FLE)

 Description   

Currently, to create an owning bson_value::value, users must first construct a bsoncxx::document::value, then parse out the bson_value they are interested in:

auto doc = make_document(kvp("v", some_value));
auto owning_value = doc.view()["v"].get_owning_value();

Let's provide a variadic helper function like the make_document and kvp helpers to facilitate this.



 Comments   
Comment by Githook User [ 08/Jul/20 ]

Author:

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

Message: CXX-2066 add a bson_value::make_value helper
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/20820f07e9dbb86260c435665470a7691d96adbc

Comment by Samantha Ritter (Inactive) [ 08/Jul/20 ]

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

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