# HG changeset patch # User deba # Date 1166543622 0 # Node ID 8070a099ffb60217eedf573f382aa9c3628c16b9 # Parent 587531b4fe0e854c3b1ea1bbb7c9b5564d9c9c64 MACROS for debug map usage diff -r 587531b4fe0e -r 8070a099ffb6 lemon/bits/debug_map.h --- a/lemon/bits/debug_map.h Tue Dec 19 14:00:43 2006 +0000 +++ b/lemon/bits/debug_map.h Tue Dec 19 15:53:42 2006 +0000 @@ -37,6 +37,10 @@ ///\brief Vector based graph maps for debugging. namespace lemon { +#ifndef LEMON_STRICT_DEBUG_MAP +#define LEMON_STRICT_DEBUG_MAP false +#endif + /// \ingroup graphbits /// /// \brief Graph map based on the std::vector storage. @@ -66,7 +70,7 @@ public: - static const bool strictCheck = false; + static const bool strictCheck = LEMON_STRICT_DEBUG_MAP; struct MapError { public: diff -r 587531b4fe0e -r 8070a099ffb6 lemon/bits/default_map.h --- a/lemon/bits/default_map.h Tue Dec 19 14:00:43 2006 +0000 +++ b/lemon/bits/default_map.h Tue Dec 19 15:53:42 2006 +0000 @@ -31,7 +31,7 @@ namespace lemon { -#ifndef _GLIBCXX_DEBUG +#ifndef LEMON_USE_DEBUG_MAP template struct DefaultMapSelector {