Changes in lemon/concepts/maps.h [953:b873350e6258:718:703ebf476a1d] in lemon-1.2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/maps.h
r953 r718 69 69 const typename _ReadMap::Key& own_key; 70 70 const _ReadMap& m; 71 Constraints() {}72 71 }; 73 72 … … 111 110 const typename _WriteMap::Value& own_val; 112 111 _WriteMap& m; 113 Constraints() {}114 112 }; 115 113 }; … … 132 130 /// Returns the value associated with the given key. 133 131 Value operator[](const Key &) const { 134 Value *r = 0; 135 return *r; 132 return *static_cast<Value *>(0); 136 133 } 137 134 … … 173 170 /// Returns a reference to the value associated with the given key. 174 171 Reference operator[](const Key &) { 175 Value *r = 0; 176 return *r; 172 return *static_cast<Value *>(0); 177 173 } 178 174 179 175 /// Returns a const reference to the value associated with the given key. 180 176 ConstReference operator[](const Key &) const { 181 Value *r = 0; 182 return *r; 177 return *static_cast<Value *>(0); 183 178 } 184 179 … … 211 206 typename _ReferenceMap::ConstReference own_cref; 212 207 _ReferenceMap& m; 213 Constraints() {}214 208 }; 215 209 };
Note: See TracChangeset
for help on using the changeset viewer.