# HG changeset patch # User Balazs Dezso # Date 2011-04-24 21:59:31 # Node ID 633956ca94216c105406ba14c38f1c73199289a3 # Parent f112c18bc304761d339c4ffc4976bba5ca348da6 Fix IterableValueMap (#420) diff --git a/lemon/maps.h b/lemon/maps.h --- a/lemon/maps.h +++ b/lemon/maps.h @@ -3252,7 +3252,7 @@ virtual void add(const Key& key) { Parent::add(key); - unlace(key); + lace(key); } virtual void add(const std::vector& keys) { diff --git a/test/maps_test.cc b/test/maps_test.cc --- a/test/maps_test.cc +++ b/test/maps_test.cc @@ -641,6 +641,7 @@ const int num = 10; Graph g; + Ibm map0(g, true); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode()); @@ -722,6 +723,7 @@ const int num = 10; Graph g; + Iim map0(g, 0); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode()); @@ -772,6 +774,7 @@ const int num = 10; Graph g; + Ivm map0(g, 0.0); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode());