Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 7:34:07 PM (14 years ago)
Author:
rgrieder
Message:

operator=() should not return constant references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Iterator.h

    r5929 r7268  
    124124                @param exp The exported element
    125125            */
    126             inline const Iterator<T>& operator=(const ObjectListBase::Export& exp)
     126            inline Iterator<T>& operator=(const ObjectListBase::Export& exp)
    127127            {
    128128                if (this->list_)
     
    140140                @param other The other Iterator
    141141            */
    142             inline const Iterator<T>& operator=(const Iterator<T>& other)
     142            inline Iterator<T>& operator=(const Iterator<T>& other)
    143143            {
    144144                if (this->list_)
     
    157157            */
    158158            template <class O>
    159             inline const Iterator<T>& operator=(ObjectListElement<O>* element)
     159            inline Iterator<T>& operator=(ObjectListElement<O>* element)
    160160            {
    161161                if (this->list_)
     
    174174            */
    175175            template <class O>
    176             inline const Iterator<T>& operator=(const ObjectListIterator<O>& other)
     176            inline Iterator<T>& operator=(const ObjectListIterator<O>& other)
    177177            {
    178178                if (this->list_)
Note: See TracChangeset for help on using the changeset viewer.