Skip to content

Commit a357bba

Browse files
committed
Make the TPC DigitContainer non-copyable
DigitContainer owns the time bins it deletes, so a copy would free them twice.
1 parent da4bd6a commit a357bba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Detectors/TPC/simulation/include/TPCSimulation/DigitContainer.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class DigitContainer
5151
}
5252
}
5353

54+
DigitContainer(const DigitContainer&) = delete;
55+
DigitContainer& operator=(const DigitContainer&) = delete;
56+
5457
/// Reset the container
5558
void reset();
5659

0 commit comments

Comments
 (0)