-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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.