Changeset 1151 for trunk/yat


Ignore:
Timestamp:
Feb 25, 2008, 11:32:04 PM (13 years ago)
Author:
Peter
Message:

remove operator [] in Vector.

Location:
trunk/yat/utility
Files:
4 edited

Legend:

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

    r1121 r1151  
    110110
    111111
    112   const double& VectorBase::operator[](size_t i) const
    113   {
    114     return this->operator()(i);
    115   }
    116 
    117 
    118112  bool VectorBase::operator==(const VectorBase& other) const
    119113  {
  • trunk/yat/utility/VectorBase.h

    r1125 r1151  
    118118    */
    119119    const double& operator()(size_t i) const;
    120     // Peter, remove this one
    121     /// \deprecated
    122     const double& operator[](size_t i) const;
    123120
    124121    /**
  • trunk/yat/utility/VectorMutable.cc

    r1121 r1151  
    122122
    123123
    124   double& VectorMutable::operator[](size_t i)
    125   {
    126     return this->operator()(i);
    127   }
    128 
    129 
    130124  const VectorMutable& VectorMutable::operator+=(double d)
    131125  {
  • trunk/yat/utility/VectorMutable.h

    r1125 r1151  
    159159    */
    160160    double& operator()(size_t i);
    161     // Peter, remove this one
    162     /// \deprecated
    163     double& operator[](size_t i);
     161
    164162    // to allow overload from base class
    165163    using VectorBase::operator();
    166     using VectorBase::operator[];
    167164
    168165    /**
Note: See TracChangeset for help on using the changeset viewer.