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

Simplify bsoncxx::document::value::release()

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.2
    • None
    • Implementation
    • None

    Description

      The current code creates and returns a temporary and has a superfluous release call. It can be simplified to:

      return std::move(_data);
      

      Attachments

        Activity

          People

            david.golden@mongodb.com David Golden
            david.golden@mongodb.com David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: