From 5a38d047ea54ad79746de8392706d443b6189c0a Mon Sep 17 00:00:00 2001 From: aandvalenzuela Date: Fri, 1 Dec 2023 09:15:01 +0100 Subject: [PATCH] [SIMULATION] Define missing assignment operator --- DataFormats/GeometryVector/interface/private/Basic3DVectorLD.h | 3 +++ .../GeometryVector/interface/private/sseBasic2DVector.h | 3 +++ .../GeometryVector/interface/private/sseBasic3DVector.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/DataFormats/GeometryVector/interface/private/Basic3DVectorLD.h b/DataFormats/GeometryVector/interface/private/Basic3DVectorLD.h index 8a5e44080d560..c639985156bd7 100644 --- a/DataFormats/GeometryVector/interface/private/Basic3DVectorLD.h +++ b/DataFormats/GeometryVector/interface/private/Basic3DVectorLD.h @@ -35,6 +35,9 @@ class Basic3DVector { /// constructor from 2D vector (X and Y from 2D vector, z set to zero) Basic3DVector(const Basic2DVector& p) : theX(p.x()), theY(p.y()), theZ(0), theW(0) {} + /// Assignment operator + Basic3DVector& operator=(const Basic3DVector&) = default; + /** Explicit constructor from other (possibly unrelated) vector classes * The only constraint on the argument type is that it has methods * x(), y() and z(), and that these methods return a type convertible to T. diff --git a/DataFormats/GeometryVector/interface/private/sseBasic2DVector.h b/DataFormats/GeometryVector/interface/private/sseBasic2DVector.h index 8f47d3603445b..068570243c828 100644 --- a/DataFormats/GeometryVector/interface/private/sseBasic2DVector.h +++ b/DataFormats/GeometryVector/interface/private/sseBasic2DVector.h @@ -26,6 +26,9 @@ class Basic2DVector { /// Copy constructor from same type. Should not be needed but for gcc bug 12685 Basic2DVector(const Basic2DVector& p) : v(p.v) {} + /// Assignment operator + Basic2DVector& operator=(const Basic2DVector&) = default; + template Basic2DVector(const Basic2DVector& p) : v(p.v) {} diff --git a/DataFormats/GeometryVector/interface/private/sseBasic3DVector.h b/DataFormats/GeometryVector/interface/private/sseBasic3DVector.h index 817d746dc46cd..212d4d91fd286 100644 --- a/DataFormats/GeometryVector/interface/private/sseBasic3DVector.h +++ b/DataFormats/GeometryVector/interface/private/sseBasic3DVector.h @@ -45,6 +45,9 @@ class Basic3DVector { /// Copy constructor from same type. Should not be needed but for gcc bug 12685 Basic3DVector(const Basic3DVector& p) : v(p.v) {} + /// Assignment operator + Basic3DVector& operator=(const Basic3DVector&) = default; + /// Copy constructor and implicit conversion from Basic3DVector of different precision template Basic3DVector(const Basic3DVector& p) : v(p.v) {}