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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.2
    • Component/s: Implementation
    • Labels:
      None
    • Sprint:
      Perl/CXX 2016-08-19

      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

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

              Dates

              Created:
              Updated:
              Resolved: