Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23758

Non CLang compliant use of std::move

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.5
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 13 (04/22/16)

      Description

      the std::move of returned objects can prevent copy elision hence should be avoided. While unique_ptr does not have lvalues copy c-tor the return value from function is an rvalue so the move c-tor can be used.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: