COIN-OR::LEMON - Graph Library

Changeset 346:538ff3ce9f68 in lemon-0.x for src/include


Ignore:
Timestamp:
04/17/04 03:50:23 (21 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@465
Message:

megsem volt bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/include/maps.h

    r345 r346  
    9696
    9797    ReferenceType operator[](const Key &k) {
    98       return (  *( (insert(PairType(k,v))).first )  ).second;
     98      return insert(PairType(k,v)).first -> second;
    9999    }
    100100    ConstReferenceType operator[](const Key &k) const {
     
    105105    }
    106106    void set(const Key &k, const T &t) {
    107       // tyuha, ez valamiert segfault-olt igy:
    108       // parent::operator[](k) = t;
    109       (  *( (insert(PairType(k,t))).first )  ).second=t;
     107      parent::operator[](k) = t;
    110108    }
    111109
Note: See TracChangeset for help on using the changeset viewer.