diff --git a/lemon/kruskal.h b/lemon/kruskal.h --- a/lemon/kruskal.h +++ b/lemon/kruskal.h @@ -212,6 +212,16 @@ } }; + template + struct RemoveConst { + typedef T type; + }; + + template + struct RemoveConst { + typedef T type; + }; + template struct KruskalOutputSelector, void>::type > @@ -219,7 +229,7 @@ typedef typename In::value_type::second_type Value; static Value kruskal(const Graph& graph, const In& in, Out& out) { - typedef StoreBoolMap Map; + typedef StoreBoolMap::type> Map; Map map(out); return _kruskal_bits::kruskal(graph, in, map); } diff --git a/test/maps_test.cc b/test/maps_test.cc --- a/test/maps_test.cc +++ b/test/maps_test.cc @@ -85,7 +85,7 @@ checkConcept, ConstMap >(); checkConcept, ConstMap >(); ConstMap map1; - ConstMap map2(B()); + ConstMap map2 = B(); ConstMap map3 = map1; map1 = constMap(B()); map1 = constMap(); @@ -143,7 +143,7 @@ { checkConcept, SparseMap >(); SparseMap map1; - SparseMap map2(B()); + SparseMap map2 = B(); SparseMap map3 = sparseMap(); SparseMap map4 = sparseMap(B());