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/util/mbool.h

    r6417 r7268  
    4242                { this->value_.memory_ = value.value_.memory_; }
    4343
    44             inline const mbool& operator=(bool value)
     44            inline mbool& operator=(bool value)
    4545                { if (value != this->value_.bool_) { ++this->value_.memory_; } return (*this); }
    46             inline const mbool& operator=(const mbool& value)
     46            inline mbool& operator=(const mbool& value)
    4747                { this->value_.memory_ = value.value_.memory_; return (*this); }
    4848
Note: See TracChangeset for help on using the changeset viewer.