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

BSON UDL for from_json

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • BSON

    Description

      Instead of forcing users to call bson::from_json like so:
      auto doc = bson::from_json("[1,2,3]")

      We could provide a UDL, i.e.,:
      auto doc = "[1,2,3]"_bson

      Attachments

        Activity

          People

            raymund.rodriguez@mongodb.com Raymund Rodriguez
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: