Ignore:
Timestamp:
Feb 21, 2008, 11:08:23 PM (14 years ago)
Author:
Peter
Message:

fixing memory bug in VectorView? - fixes #305

File:
1 edited

Legend:

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

    r1038 r1118  
    177177  VectorMutable::operator proxy()
    178178  {
     179    assert(vec_==const_vec_);
    179180    proxy p;
    180181    p.vec_ = vec_;
    181182    vec_ = NULL; // proxy takes ownership and delivers to its receiver
     183    const_vec_ = NULL;
    182184    return p;
    183185  }
Note: See TracChangeset for help on using the changeset viewer.