[Lemon-commits] deba: r3119 - hugo/trunk/lemon/bits

Lemon SVN svn at lemon.cs.elte.hu
Tue Dec 19 16:53:42 CET 2006


Author: deba
Date: Tue Dec 19 16:53:42 2006
New Revision: 3119

Modified:
   hugo/trunk/lemon/bits/debug_map.h
   hugo/trunk/lemon/bits/default_map.h

Log:
MACROS for debug map usage



Modified: hugo/trunk/lemon/bits/debug_map.h
==============================================================================
--- hugo/trunk/lemon/bits/debug_map.h	(original)
+++ hugo/trunk/lemon/bits/debug_map.h	Tue Dec 19 16:53:42 2006
@@ -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:

Modified: hugo/trunk/lemon/bits/default_map.h
==============================================================================
--- hugo/trunk/lemon/bits/default_map.h	(original)
+++ hugo/trunk/lemon/bits/default_map.h	Tue Dec 19 16:53:42 2006
@@ -31,7 +31,7 @@
 namespace lemon {
   
   
-#ifndef _GLIBCXX_DEBUG
+#ifndef LEMON_USE_DEBUG_MAP
 
   template <typename _Graph, typename _Item, typename _Value>
   struct DefaultMapSelector {



More information about the Lemon-commits mailing list