Changeset 1757 for code/trunk/src/util
- Timestamp:
- Sep 10, 2008, 2:30:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/MultiType.h
r1747 r1757 164 164 inline ~MultiType() { if (this->value_) { delete this->value_; } } 165 165 166 template <typename V> inline MultiType& operator=(const V& value) { this->setValue(value); return (*this); }167 inline MultiType& operator=(const MultiType& other) { this->setValue(other); return (*this); }168 inline MultiType& operator=(MT_Type type) { this->setType(type); return (*this); }166 template <typename V> inline const MultiType& operator=(const V& value) { this->setValue(value); return (*this); } 167 inline const MultiType& operator=(const MultiType& other) { this->setValue(other); return (*this); } 168 inline const MultiType& operator=(MT_Type type) { this->setType(type); return (*this); } 169 169 170 170 inline void setValue(const char& value);
Note: See TracChangeset
for help on using the changeset viewer.