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; }