@@ -188,7 +188,7 @@ public:
188188 // [WARNING] Chaning szC and szD to size_t causes some really strange behavior.
189189 long long szC = sizeof ( C );
190190 long long szD = sizeof ( D );
191- data = (C*)&a[ 0 ] ;
191+ data = (C*)a. data ;
192192 min = ( a.minimum () * szD ) / szC;
193193 max = ( a.maximum () * szD ) / szC;
194194 if ( min*szC!=a.minimum ()*szD || max*szC!=a.maximum ()*szD )
@@ -306,6 +306,7 @@ public:
306306 return (*this );
307307 }
308308 inline Array& operator ++ ( void ) { return (*this ) += 1 ; }
309+ inline Array operator ++( int ){ Array< C > temp = (*this ) ; (*this ) +=1 ; return temp; }
309310 Array operator - ( int idx ) const { return (*this ) + (-idx); }
310311 Array operator - ( long long idx ) const { return (*this ) + (-idx); }
311312 Array operator - ( unsigned int idx ) const { return (*this ) + (-idx); }
@@ -315,6 +316,7 @@ public:
315316 Array& operator -= ( unsigned int idx ) { return (*this ) += (-idx); }
316317 Array& operator -= ( unsigned long long idx ) { return (*this ) += (-idx); }
317318 Array& operator -- ( void ) { return (*this ) -= 1 ; }
319+ inline Array operator --( int ){ Array< C > temp = (*this ) ; (*this ) -=1 ; return temp; }
318320 long long operator - ( const Array& a ) const { return ( long long )( data - a.data ); }
319321
320322 void Free ( void )
@@ -501,6 +503,7 @@ public:
501503 return (*this );
502504 }
503505 inline ConstArray& operator ++ ( void ) { return (*this ) += 1 ; }
506+ inline ConstArray operator ++( int ){ ConstArray< C > temp = (*this ) ; (*this ) +=1 ; return temp; }
504507 ConstArray operator - ( int idx ) const { return (*this ) + (-idx); }
505508 ConstArray operator - ( long long idx ) const { return (*this ) + (-idx); }
506509 ConstArray operator - ( unsigned int idx ) const { return (*this ) + (-idx); }
@@ -510,6 +513,7 @@ public:
510513 ConstArray& operator -= ( unsigned int idx ) { return (*this ) += (-idx); }
511514 ConstArray& operator -= ( unsigned long long idx ) { return (*this ) += (-idx); }
512515 ConstArray& operator -- ( void ) { return (*this ) -= 1 ; }
516+ inline ConstArray operator --( int ){ ConstArray< C > temp = (*this ) ; (*this ) -=1 ; return temp; }
513517 long long operator - ( const ConstArray& a ) const { return ( long long )( data - a.data ); }
514518 long long operator - ( const Array< C >& a ) const { return ( long long )( data - a.pointer () ); }
515519
0 commit comments