From 56ac90dadcf98137df01894e98cd2c30e0ee0069 Mon Sep 17 00:00:00 2001
From: Paul Gessinger-Befurt <paul.gessinger@cern.ch>
Date: Thu, 18 Jan 2024 15:41:31 +0100
Subject: [PATCH] Make AtlasFieldCache copyable

Make AtlasFieldCache copyable
---
 .../MagFieldElements/MagFieldElements/AtlasFieldCache.h     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MagneticField/MagFieldElements/MagFieldElements/AtlasFieldCache.h b/MagneticField/MagFieldElements/MagFieldElements/AtlasFieldCache.h
index 7a399c7f6c92..0417e7e65fd3 100644
--- a/MagneticField/MagFieldElements/MagFieldElements/AtlasFieldCache.h
+++ b/MagneticField/MagFieldElements/MagFieldElements/AtlasFieldCache.h
@@ -51,10 +51,12 @@ public:
                   const AtlasFieldMap* fieldMap);
 
   /**
-   * Move-able but not copy-able
+   * Move-able and copy-able
    */
   AtlasFieldCache& operator=(AtlasFieldCache&& other) = default;
   AtlasFieldCache(AtlasFieldCache&& other) = default;
+  AtlasFieldCache(const AtlasFieldCache& other) = default;
+  AtlasFieldCache& operator=(const AtlasFieldCache& other) = default;
   ~AtlasFieldCache() = default;
 
   /** get B field value at given position
@@ -81,8 +83,6 @@ public:
   bool toroidOn() const;
 
 private:
-  AtlasFieldCache(const AtlasFieldCache& other) = delete;
-  AtlasFieldCache& operator=(const AtlasFieldCache& other) = delete;
 
   /// fill given magnetic field zone */
   bool fillFieldCache(double z, double r, double phi);
-- 
GitLab