COIN-OR::LEMON - Graph Library

Changeset 1185:22bb02339808 in lemon-0.x


Ignore:
Timestamp:
03/04/05 18:08:55 (15 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1597
Message:

make constructors explicit

Location:
src/lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/bin_heap.h

    r1164 r1185  
    7474  public:
    7575    ///\e
    76     BinHeap(ItemIntMap &_iim) : iim(_iim) {}
    77     ///\e
    78     BinHeap(ItemIntMap &_iim, const Compare &_comp) : comp(_comp), iim(_iim) {}
     76    explicit BinHeap(ItemIntMap &_iim) : iim(_iim) {}
     77    ///\e
     78    explicit BinHeap(ItemIntMap &_iim, const Compare &_comp)
     79      : iim(_iim), comp(_comp) {}
    7980
    8081
  • src/lemon/fib_heap.h

    r1164 r1185  
    8989    };
    9090   
    91     FibHeap(ItemIntMap &_iimap) : minimum(0), iimap(_iimap), num_items() {}
     91    explicit FibHeap(ItemIntMap &_iimap)
     92      : minimum(0), iimap(_iimap), num_items() {}
    9293    FibHeap(ItemIntMap &_iimap, const Compare &_comp) : minimum(0),
    9394      iimap(_iimap), comp(_comp), num_items() {}
Note: See TracChangeset for help on using the changeset viewer.