]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/util/AliHLTGlobalBarrelTrack.h
moving implementation of template function to header file
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTGlobalBarrelTrack.h
index 0be23facce7c57036cfb630865fce1eed8dbcb0d..9e2c35e0409dd6063221dce6b23e9e9945ba7975 100644 (file)
@@ -38,7 +38,11 @@ class AliHLTGlobalBarrelTrack : public AliKalmanTrack
 
   /** assignment operator */
   template <class c>
-  AliHLTGlobalBarrelTrack& operator=(const c& t);
+  AliHLTGlobalBarrelTrack& operator=(const c& t) {
+    this->~AliHLTGlobalBarrelTrack(); new (this) AliHLTGlobalBarrelTrack(t);
+    return *this;
+  }
+
   /** destructor */
   ~AliHLTGlobalBarrelTrack();