Coverity analysis defect 138963: Rule of three in timestamp_simulator.h

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Transactions
    • 20,711.766
    • StorEng - Defined Pipeline
    • None

      Rule of three

      Compiler generated special functions may behave incorrectly if the class requires a user-definition for any of its special functions. This class has user-definitions for at least one but not all of its special functions (copy constructor, copy assignment operator, destructor). If one of these functions requires a user-definition then it is likely all of them should have a definition.
      /test/simulator/timestamp/src/include/timestamp_manager.h:38: RULE_OF_ZERO_THREE_FIVE 138963 Class "timestamp_manager" has a user definition for at least one special function (copy constructor, copy assignment, destructor) but not all. If one of these functions requires a user definition then the others likely do as well.
      /test/simulator/timestamp/src/include/timestamp_manager.h:65: RULE_OF_ZERO_THREE_FIVE 138963 User-defined copy constructor.
      /test/simulator/timestamp/src/include/timestamp_manager.h:66: RULE_OF_ZERO_THREE_FIVE 138963 User-defined copy assignment operator.

            Assignee:
            Ayesha Ahmed
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: