From 410b7d1d5eca3081081c692403b34e1454449bbb Mon Sep 17 00:00:00 2001 From: mmusich Date: Thu, 8 Jun 2023 09:14:25 +0200 Subject: [PATCH] TrackerGeometry: deleted copy constructor and and defaulted move constructor --- .../TrackerGeometryBuilder/interface/TrackerGeometry.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h b/Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h index a54cb51a3b258..1a5ead83879b0 100644 --- a/Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h +++ b/Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h @@ -55,6 +55,14 @@ class TrackerGeometry final : public TrackingGeometry { Ph2SS }; + // deleted copy constructor and copy assignment operators + TrackerGeometry(TrackerGeometry const&) = delete; + TrackerGeometry& operator=(TrackerGeometry const&) = delete; + + // defaulted move constructor and move assignment operators + TrackerGeometry(TrackerGeometry&&) = default; + TrackerGeometry& operator=(TrackerGeometry&&) = default; + ~TrackerGeometry() override; const DetTypeContainer& detTypes() const override { return theDetTypes; }