Coverity analysis defect 100766: Missing move assignment operator

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: