# HG changeset patch # User klao # Date 1082166623 0 # Node ID 538ff3ce9f68ac4d0fdd945c42ca3b73e256c78d # Parent d8c452d54d37731f7ca8c6ff99ab043c1e06254c megsem volt bug diff -r d8c452d54d37 -r 538ff3ce9f68 src/include/maps.h --- a/src/include/maps.h Fri Apr 16 23:00:09 2004 +0000 +++ b/src/include/maps.h Sat Apr 17 01:50:23 2004 +0000 @@ -95,7 +95,7 @@ StdMap(const StdMap &m, const T &_v) { FIXME; } ReferenceType operator[](const Key &k) { - return ( *( (insert(PairType(k,v))).first ) ).second; + return insert(PairType(k,v)).first -> second; } ConstReferenceType operator[](const Key &k) const { typename parent::iterator i = lower_bound(__k); @@ -104,9 +104,7 @@ return (*i).second; } void set(const Key &k, const T &t) { - // tyuha, ez valamiert segfault-olt igy: - // parent::operator[](k) = t; - ( *( (insert(PairType(k,t))).first ) ).second=t; + parent::operator[](k) = t; } /// Changes the default value of the map.