# HG changeset patch # User deba # Date 1139304775 0 # Node ID 65765fb5eb2f1965d1291c1a6c13b2b74278b89e # Parent 71b3bc042c470f5d9ff894df6c8225b4d5a54e96 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 diff -r 71b3bc042c47 -r 65765fb5eb2f lemon/bits/default_map.h --- a/lemon/bits/default_map.h Tue Feb 07 09:20:47 2006 +0000 +++ b/lemon/bits/default_map.h Tue Feb 07 09:32:55 2006 +0000 @@ -29,13 +29,23 @@ ///their elements dynamically. namespace lemon { + +#ifndef GLIBCXX_DEBUG + template + struct DefaultMapSelector { + typedef ArrayMap<_Graph, _Item, _Value> Map; + }; + +#else template struct DefaultMapSelector { typedef VectorMap<_Graph, _Item, _Value> Map; }; +#endif + // bool template struct DefaultMapSelector<_Graph, _Item, bool> {