COIN-OR::LEMON - Graph Library

Changeset 136:b82dc494bafc in lemon for lemon/kruskal.h


Ignore:
Timestamp:
04/17/08 19:33:19 (11 years ago)
Author:
"Balazs Dezso <deba@…
Branch:
default
Phase:
public
Message:

Icc compatibility fixes (ticket #84)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/kruskal.h

    r103 r136  
    213213    };
    214214
     215    template <typename T>
     216    struct RemoveConst {
     217      typedef T type;
     218    };
     219
     220    template <typename T>
     221    struct RemoveConst<const T> {
     222      typedef T type;
     223    };
     224
    215225    template <typename Graph, typename In, typename Out>
    216226    struct KruskalOutputSelector<Graph, In, Out,
     
    220230
    221231      static Value kruskal(const Graph& graph, const In& in, Out& out) {
    222         typedef StoreBoolMap<Out> Map;
     232        typedef StoreBoolMap<typename RemoveConst<Out>::type> Map;
    223233        Map map(out);
    224234        return _kruskal_bits::kruskal(graph, in, map);
Note: See TracChangeset for help on using the changeset viewer.