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

Coverity analysis defect 100766: Missing move assignment operator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Performance
    • Fully Compatible
    • Security 2021-01-11

      Missing move assignment operator

      This class does not have a user-written move assignment operator and its copy assignment operator is found to be applied to rvalue(s), which can be moved to possibly enhance program performance had the move assignment operator been in place. Class lacks a user-written move assignment operator
      /src/mongo/db/auth/privilege.h:47: MISSING_MOVE_ASSIGNMENT 100766 Class "mongo::Privilege" may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster.

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: