Ignore:
Timestamp:
Sep 27, 2008, 6:27:55 AM (13 years ago)
Author:
Peter
Message:

refs #368 - added several tests. Left now is to add specializations for trait classes.

File:
1 edited

Legend:

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

    r1537 r1538  
    5252       \return reference to data
    5353     */
     54    //typename std::iterator_traits<DataWeight>::reference data(void) const
    5455    double& data(void) { return *data_; }
    5556
     
    7273       \brief assignment operator
    7374     */
     75    DataWeightProxy& operator=(const DataWeightProxy& rhs)
     76    {
     77      data() = rhs.data();
     78      weight() = rhs.weight();
     79      return *this;
     80    }
     81
     82    /**
     83       \brief assignment operator
     84     */
    7485    DataWeightProxy& operator=(const DataWeight& rhs)
    7586    {
     
    8293       \brief Conversion to DataWeight
    8394     */
    84     operator DataWeight() const { return DataWeight(data(), weight()); }
     95    operator DataWeight() const
     96    { return DataWeight(this->data(), this->weight()); }
    8597
    8698  private:
Note: See TracChangeset for help on using the changeset viewer.