Changeset 835 for library/bdm

Show
Ignore:
Timestamp:
02/23/10 15:24:54 (14 years ago)
Author:
prikryl
Message:

Patched to get rid of abstract class errors under VC 2008.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/itpp/base/array.h

    r813 r835  
    163163 
    164164  //! Shift in data at position 0. Return data from the last position. 
    165   T shift_right(const T& e); 
     165  T& shift_right(const T& e); 
    166166  //! Shift in array at position 0. Return data from the last position. 
    167167  const Array<T> shift_right(const Array<T> &a); 
    168168  //! Shift in data at the last position. Return data from position 0. 
    169   T shift_left(const T& e); 
     169  T& shift_left(const T& e); 
    170170  //! Shift in array at the last position. Return data from position 0. 
    171171  const Array<T> shift_left(const Array<T> &a); 
     
    387387 
    388388template<class T> 
    389 T Array<T>::shift_right(const T& x) 
     389T& Array<T>::shift_right(const T& x) 
    390390{ 
    391391  it_assert_debug(ndata > 0, "Array::shift_right(x): Array empty!"); 
     
    397397  data[0] = x; 
    398398 
    399   return ret; 
     399  //return ret; 
     400  return data[0]; 
    400401} 
    401402 
     
    418419 
    419420template<class T> 
    420 T Array<T>::shift_left(const T& x) 
     421T& Array<T>::shift_left(const T& x) 
    421422{ 
    422423  T temp = data[0]; 
     
    426427  data[ndata-1] = x; 
    427428 
    428   return temp; 
     429  //return temp; 
     430  return data[0]; 
    429431} 
    430432