Skip to content

Commit 5f95228

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 7368424 commit 5f95228

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
@@ -52,6 +52,9 @@ class DigitContainer
5252
}
5353
}
5454

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

0 commit comments

Comments
 (0)