Changeset 136:b82dc494bafc in lemon-1.2 for lemon
- Timestamp:
- 04/17/08 19:33:19 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/kruskal.h
r103 r136 213 213 }; 214 214 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 215 225 template <typename Graph, typename In, typename Out> 216 226 struct KruskalOutputSelector<Graph, In, Out, … … 220 230 221 231 static Value kruskal(const Graph& graph, const In& in, Out& out) { 222 typedef StoreBoolMap< Out> Map;232 typedef StoreBoolMap<typename RemoveConst<Out>::type> Map; 223 233 Map map(out); 224 234 return _kruskal_bits::kruskal(graph, in, map);
Note: See TracChangeset
for help on using the changeset viewer.