Ignore:
Timestamp:
Feb 23, 2008, 7:49:29 PM (14 years ago)
Author:
Peter
Message:

some docs and fixed bug in VectorConstView?

File:
1 edited

Legend:

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

    r1121 r1130  
    103103  {
    104104    if (size()!=other.size())
    105       throw utility::GSL_error("VectorView::dimension mis-match");
     105      throw utility::GSL_error("VectorView::assign dimension mis-match");
    106106    if (!other.size())
    107107      return *this;
    108     gsl_vector_memcpy(vec_, other.gsl_vector_p());
     108    if (gsl_vector_memcpy(vec_, other.gsl_vector_p()))
     109      throw utility::GSL_error("VectorView::assign memcpy failed.");
    109110    const_vec_ = vec_;
    110111    return *this;
Note: See TracChangeset for help on using the changeset viewer.