COIN-OR::LEMON - Graph Library

Changeset 433:d9fac1497298 in lemon-0.x for src/include/dijkstra.h


Ignore:
Timestamp:
04/27/04 10:19:39 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@580
Message:

g++-3.4.0, misc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/include/dijkstra.h

    r430 r433  
    4444#else
    4545  template <typename Graph,
    46             typename LengthMap=typename Graph::EdgeMap<int>,
     46            typename LengthMap=typename Graph::template EdgeMap<int>,
    4747            template <class,class,class> class Heap = BinHeap >
    4848#endif
     
    5555   
    5656    typedef typename LengthMap::ValueType ValueType;
    57     typedef typename Graph::NodeMap<Edge> PredMap;
    58     typedef typename Graph::NodeMap<Node> PredNodeMap;
    59     typedef typename Graph::NodeMap<ValueType> DistMap;
     57    typedef typename Graph::template NodeMap<Edge> PredMap;
     58    typedef typename Graph::template NodeMap<Node> PredNodeMap;
     59    typedef typename Graph::template NodeMap<ValueType> DistMap;
    6060
    6161  private:
     
    155155    }
    156156   
    157     typename Graph::NodeMap<int> heap_map(G,-1);
    158    
    159     Heap<Node,ValueType,typename Graph::NodeMap<int> > heap(heap_map);
     157    typename Graph::template NodeMap<int> heap_map(G,-1);
     158   
     159    Heap<Node, ValueType, typename Graph::template NodeMap<int> >
     160      heap(heap_map);
    160161   
    161162    heap.push(s,0);
Note: See TracChangeset for help on using the changeset viewer.