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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 3.0.2
    • Affects Version/s: None
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: