Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2066

implement a make_value helper

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0, 3.6.0
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samantha.ritter Samantha Ritter (Inactive)
              Reporter:
              samantha.ritter Samantha Ritter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: