]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing compilation problem for newest GCC versions.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Aug 2010 21:53:10 +0000 (21:53 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Aug 2010 21:53:10 +0000 (21:53 +0000)
HLT/BASE/AliHLTArray.h

index 47f4e0607b65f8ec5ae91656a6de6f641ad052e4..61c062e0a510e8c2f5642206594ec13a8809421c 100644 (file)
@@ -282,15 +282,16 @@ namespace AliHLTInternal
       ArrayBase() : fData( 0 ), fSize( 0 ), fStrideX( 0 ), fStrideY( 0 ) {} // XXX really shouldn't be done. But -Weffc++ wants it so
       ArrayBase( const ArrayBase &rhs ) : ArrayBoundsCheck( rhs ), fData( rhs.fData ), fSize( rhs.fSize ), fStrideX( rhs.fStrideX ), fStrideY( rhs.fStrideY ) {} // XXX
       ArrayBase &operator=( const ArrayBase &rhs ) { ArrayBoundsCheck::operator=( rhs ); fData = rhs.fData; fSize = rhs.fSize; fStrideX = rhs.fStrideX; fStrideY = rhs.fStrideY; return *this; } // XXX
-      typedef typename ReturnTypeHelper<T>::Type R;
+      // Stopped working on GCC 4.5.0
+      //typedef typename ReturnTypeHelper<T>::Type R;
       /**
        * return a reference to the value at the given indexes
        */
-      inline R &operator()( int x, int y, int z );
+      inline typename ReturnTypeHelper<T>::Type &operator()( int x, int y, int z );
       /**
        * return a const reference to the value at the given indexes
        */
-      inline const R &operator()( int x, int y, int z ) const;
+      inline const typename ReturnTypeHelper<T>::Type &operator()( int x, int y, int z ) const;
       /**
        * return a 2-dim array at the given index. This makes it behave like a 3-dim C-Array.
        */