COIN-OR::LEMON - Graph Library

Changeset 2263:9273fe7d850c in lemon-0.x for lemon/min_cut.h


Ignore:
Timestamp:
10/26/06 16:20:17 (18 years ago)
Author:
mqrelly
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3021
Message:

Bug #46 fixed: Superfluous template parameter in Heap concept
NOTE: Not every affected file tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/min_cut.h

    r2260 r2263  
    3939    template <typename CapacityMap>
    4040    struct HeapSelector {
    41       template <typename Key, typename Value, typename Ref>
     41      template <typename Value, typename Ref>
    4242      struct Selector {
    43         typedef BinHeap<Key, Value, Ref, std::greater<Value> > Heap;
     43        typedef BinHeap<Value, Ref, std::greater<Value> > Heap;
    4444      };
    4545    };
     
    4747    template <typename CapacityKey>
    4848    struct HeapSelector<ConstMap<CapacityKey, Const<int, 1> > > {
    49       template <typename Key, typename Value, typename Ref>
     49      template <typename Value, typename Ref>
    5050      struct Selector {
    51         typedef BucketHeap<Key, Ref, false > Heap;
     51        typedef BucketHeap<Ref, false > Heap;
    5252      };
    5353    };
     
    100100    typedef typename _min_cut_bits
    101101    ::HeapSelector<CapacityMap>
    102     ::template Selector<typename Graph::Node, Value, HeapCrossRef>
     102    ::template Selector<Value, HeapCrossRef>
    103103    ::Heap Heap;
    104104
     
    767767    typedef typename _min_cut_bits
    768768    ::HeapSelector<CapacityMap>
    769     ::template Selector<typename AuxGraph::Node, Value, HeapCrossRef>
     769    ::template Selector<Value, HeapCrossRef>
    770770    ::Heap Heap;
    771771   
Note: See TracChangeset for help on using the changeset viewer.