Changeset 1026


Ignore:
Timestamp:
Feb 1, 2008, 7:34:35 PM (13 years ago)
Author:
Peter
Message:

not returning const VectorBase?& in vector and VectorView?

Location:
trunk/yat/utility
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/VectorView.cc

    r1015 r1026  
    142142
    143143
    144   const VectorBase& VectorView::assign(const VectorBase& other )
     144  const VectorView& VectorView::assign(const VectorBase& other )
    145145  {
    146146    if (size()!=other.size())
     
    161161
    162162
    163   const VectorBase& VectorView::operator=(const VectorView& other )
     163  const VectorView& VectorView::operator=(const VectorView& other )
    164164  {
    165165    return assign(other);
     
    167167
    168168 
    169   const VectorBase& VectorView::operator=(const VectorBase& other )
     169  const VectorView& VectorView::operator=(const VectorBase& other )
    170170  {
    171171    return assign(other);
     
    174174 
    175175  /*
    176   const VectorBase& VectorView::operator=(proxy p)
     176  const VectorView& VectorView::operator=(proxy p)
    177177  {
    178178    if (size()!=p.vec_->size)
  • trunk/yat/utility/VectorView.h

    r1015 r1026  
    170170       \throw GSL_error if dimensions mis-match.
    171171    */
    172     const VectorBase& operator=(const VectorBase&);
    173     const VectorBase& operator=(const VectorView&);
     172    const VectorView& operator=(const VectorBase&);
     173    const VectorView& operator=(const VectorView&);
    174174
    175175    //const VectorBase& operator=(proxy);
    176176
    177177  private:
    178     const VectorBase& assign(const VectorBase& other);
     178    const VectorView& assign(const VectorBase& other);
    179179    void delete_allocated_memory(void);
    180180
  • trunk/yat/utility/vector.cc

    r1015 r1026  
    206206  */
    207207
    208   const VectorBase& vector::operator=( const vector& other )
     208  const vector& vector::operator=( const vector& other )
    209209  {
    210210    return assign(other);
     
    218218  */
    219219
    220   const VectorBase& vector::assign(const VectorBase& other)
     220  const vector& vector::assign(const VectorBase& other)
    221221  {
    222222    if (!other.size())
  • trunk/yat/utility/vector.h

    r1015 r1026  
    167167    */
    168168    //const VectorBase& operator=(const VectorBase&);
    169     const VectorBase& operator=(const vector&);
     169    const vector& operator=(const vector&);
    170170
    171171  private:
    172     const VectorBase& assign(const VectorBase& other);
     172    const vector& assign(const VectorBase& other);
    173173    //const VectorBase& assign(VectorBase& other);
    174174
Note: See TracChangeset for help on using the changeset viewer.