COIN-OR::LEMON - Graph Library

Changeset 977:9a3187204242 in lemon-main for lemon/max_cardinality_search.h


Ignore:
Timestamp:
01/19/12 15:25:06 (12 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Intel C++ compatibility fix in max_cardinality_search.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/max_cardinality_search.h

    r916 r977  
    403403    ///\param digraph the digraph the algorithm will run on.
    404404    ///\param capacity the capacity map used by the algorithm.
    405     ///When no capacity map given, a constant 1 capacity map will
    406     ///be allocated.
    407 #ifdef DOXYGEN
    408405    MaxCardinalitySearch(const Digraph& digraph,
    409                          const CapacityMap& capacity=0 ) :
    410 #else
    411     MaxCardinalitySearch(const Digraph& digraph,
    412                          const CapacityMap& capacity=*static_cast<const CapacityMap*>(0) ) :
    413 #endif
     406                         const CapacityMap& capacity) :
    414407      _graph(&digraph),
    415408      _capacity(&capacity), local_capacity(false),
     409      _cardinality(0), local_cardinality(false),
     410      _processed(0), local_processed(false),
     411      _heap_cross_ref(0), local_heap_cross_ref(false),
     412      _heap(0), local_heap(false)
     413    { }
     414
     415    /// \brief Constructor.
     416    ///
     417    ///\param digraph the digraph the algorithm will run on.
     418    ///
     419    ///A constant 1 capacity map will be allocated.
     420    MaxCardinalitySearch(const Digraph& digraph) :
     421      _graph(&digraph),
     422      _capacity(0), local_capacity(false),
    416423      _cardinality(0), local_cardinality(false),
    417424      _processed(0), local_processed(false),
Note: See TracChangeset for help on using the changeset viewer.