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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.2
    • Affects Version/s: None
    • Component/s: Implementation
    • Labels:
      None

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

      return std::move(_data);
      

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

              Created:
              Updated:
              Resolved: