Coverity analysis defect 105145: Copy without assign

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-17
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Class has user-written copy constructor but no user-written assignment operator

      Defect 105145 (STATIC_C)
      Checker COPY_WITHOUT_ASSIGN (subcategory none)
      File: /src/mongo/db/storage/kv/temporary_kv_record_store.h
      Parse Warning (no function name available)
      /src/mongo/db/storage/kv/temporary_kv_record_store.h, line: 46
      Class "mongo::TemporaryKVRecordStore" has a user-written copy constructor "mongo::TemporaryKVRecordStore::TemporaryKVRecordStore(mongo::TemporaryKVRecordStore &&)" but no corresponding user-written assignment operator.

          class TemporaryKVRecordStore : public TemporaryRecordStore {
      

      /src/mongo/db/storage/kv/temporary_kv_record_store.h, line: 54
      User-written copy constructor.

              TemporaryKVRecordStore(TemporaryKVRecordStore&& other) noexcept
      

            Assignee:
            Louis Williams
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: