# HG changeset patch # User "Balazs Dezso " # Date 2008-04-17 19:33:19 # Node ID b82dc494bafca1859c5f73bc1f9556390bdd08e1 # Parent 6e7aee618f037c144a58dce8fb91cffbfa9ff11f Icc compatibility fixes (ticket #84) 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());