-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Fully Compatible
-
ALL
-
Service arch 2020-12-14
Copy without assign
This class has a user-defined copy constructor but no user-defined assignment operator. If the copy constructor is necessary to manage owned resources then a corresponding assignment operator is usually required. If an object of this type is assigned memory leaks and/or use-after-free errors may occur. Note that a compiler-generated assignment operator will perform only a bit-wise copy for any fields that do not have their own assignment operators defined. Class has user-written copy constructor but no user-written assignment operator
/src/mongo/db/request_execution_context.h:54: COPY_WITHOUT_ASSIGN 116611 Class "mongo::RequestExecutionContext" has a user-written copy constructor "mongo::RequestExecutionContext::RequestExecutionContext(mongo::RequestExecutionContext const &) =delete" but no corresponding user-written assignment operator.
/src/mongo/db/request_execution_context.h:57: COPY_WITHOUT_ASSIGN 116611 User-written copy constructor.