COIN-OR::LEMON - Graph Library

Changeset 1966:65765fb5eb2f in lemon-0.x


Ignore:
Timestamp:
02/07/06 10:32:55 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2543
Message:

Easier checking in DEBUG mode

I hope we should not test ArrayMap? longer

The vector map checks its limits in debug mode what
helps us to find the bad memory accesses in the maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/default_map.h

    r1965 r1966  
    3030
    3131namespace lemon {
    32 
     32 
     33#ifndef GLIBCXX_DEBUG
     34
     35  template <typename _Graph, typename _Item, typename _Value>
     36  struct DefaultMapSelector {
     37    typedef ArrayMap<_Graph, _Item, _Value> Map;
     38  };
     39
     40#else
    3341
    3442  template <typename _Graph, typename _Item, typename _Value>
     
    3644    typedef VectorMap<_Graph, _Item, _Value> Map;
    3745  };
     46
     47#endif
    3848
    3949  // bool
Note: See TracChangeset for help on using the changeset viewer.