From 5e143689c014af2949a9d23a777dcd9628de6d66 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Thu, 10 Jan 2019 16:37:12 +0100 Subject: [PATCH] TileEvent: Fix gcc9 warnings. In C++11, implicit declarations of copy and assignment are deprecated if the class has a user defined destructor or copy or assignment. gcc9 now warns about this by default. Adjust to avoid the warning. --- TileCalorimeter/TileEvent/TileEvent/TileContainer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TileCalorimeter/TileEvent/TileEvent/TileContainer.h b/TileCalorimeter/TileEvent/TileEvent/TileContainer.h index 033c513fecf7..be65b06780d0 100755 --- a/TileCalorimeter/TileEvent/TileEvent/TileContainer.h +++ b/TileCalorimeter/TileEvent/TileEvent/TileContainer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ //******************************************************************** @@ -45,7 +45,7 @@ public: TileContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS) : DataVector < TELEMENT > (ownPolicy) { } // destructor - virtual ~TileContainer() { } + virtual ~TileContainer() = default; // insert a Tile element into a collection. inline void add (TELEMENT* rc) { MyVector::push_back(rc); } -- GitLab