1.1 --- a/src/include/maps.h Fri Apr 16 23:00:09 2004 +0000
1.2 +++ b/src/include/maps.h Sat Apr 17 01:50:23 2004 +0000
1.3 @@ -95,7 +95,7 @@
1.4 StdMap(const StdMap<Key,T1,Comp1> &m, const T &_v) { FIXME; }
1.5
1.6 ReferenceType operator[](const Key &k) {
1.7 - return ( *( (insert(PairType(k,v))).first ) ).second;
1.8 + return insert(PairType(k,v)).first -> second;
1.9 }
1.10 ConstReferenceType operator[](const Key &k) const {
1.11 typename parent::iterator i = lower_bound(__k);
1.12 @@ -104,9 +104,7 @@
1.13 return (*i).second;
1.14 }
1.15 void set(const Key &k, const T &t) {
1.16 - // tyuha, ez valamiert segfault-olt igy:
1.17 - // parent::operator[](k) = t;
1.18 - ( *( (insert(PairType(k,t))).first ) ).second=t;
1.19 + parent::operator[](k) = t;
1.20 }
1.21
1.22 /// Changes the default value of the map.