Ignore:
Timestamp:
Mar 10, 2007, 9:49:31 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #193. Fixing doxygen docs, and operator=.

File:
1 edited

Legend:

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

    r789 r790  
    384384  const vector& vector::operator=( const vector& other )
    385385  {
    386     if( this != &other ) {
    387       if (size()!=other.size())
    388         throw utility::GSL_error("vector::operator= vector sizes differ");
    389       for (size_t i=0; i<size(); ++i)
    390         gsl_vector_set(v_, i, other(i));
    391     }
     386    set(other);
    392387    return *this;
    393388  }
Note: See TracChangeset for help on using the changeset viewer.