Changeset 693 for trunk/yat/utility


Ignore:
Timestamp:
Oct 17, 2006, 3:03:11 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Clarified doc and comments.

File:
1 edited

Legend:

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

    r686 r693  
    7373     @code
    7474  const vector vm(13,1.0);
    75   vector v1(vm,2,4);       // bad code!
    76   v1(0)=-123;              // accepted by compiler, runtime failure will occur
    77   const vector v2(vm,2,4);
     75  vector v1(vm,2,4);       // bad code! not const!
     76  v1(0)=-123;              // accepted by compiler, runtime abort will occur
     77  const vector v2(vm,2,4); // proper code
    7878  v2(0)=-123;              // not acceptable for the compiler
    7979     @endcode
     
    502502    gsl_vector_view* view_;
    503503    gsl_vector_const_view* view_const_;
     504    // proxy_v_ is used to access the proper underlying v_ or v_const_
     505    // in all const member functions.
    504506    const gsl_vector* proxy_v_;
    505507  };
Note: See TracChangeset for help on using the changeset viewer.