Ignore:
Timestamp:
Dec 15, 2008, 1:57:43 PM (13 years ago)
Author:
Peter
Message:

fixes #467 - implicit conversion between Vector and its Views are no longer allowed

File:
1 edited

Legend:

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

    r1487 r1651  
    124124
    125125
    126 
    127126  const VectorView& VectorView::operator=(const VectorView& other )
    128127  {
     
    147146
    148147
     148  VectorView::operator proxy()
     149  {
     150    assert(vec_==const_vec_);
     151    proxy p;
     152    p.vec_ = vec_;
     153    vec_ = NULL; // proxy takes ownership and delivers to its receiver
     154    const_vec_ = NULL;
     155    return p;
     156  }
     157
     158
    149159}}} // of namespace utility, yat, and thep
Note: See TracChangeset for help on using the changeset viewer.