[Lemon-commits] Peter Kovacs: Remove unnecessary integer require...

Lemon HG hg at lemon.cs.elte.hu
Wed Mar 3 17:14:29 CET 2010


details:   http://lemon.cs.elte.hu/hg/lemon/rev/30c77d1c0cba
changeset: 925:30c77d1c0cba
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Thu Oct 15 21:04:50 2009 +0200
description:
	Remove unnecessary integer requirement in Suurballe (#323)

diffstat:

 lemon/suurballe.h |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (24 lines):

diff --git a/lemon/suurballe.h b/lemon/suurballe.h
--- a/lemon/suurballe.h
+++ b/lemon/suurballe.h
@@ -55,7 +55,7 @@
   /// \tparam LEN The type of the length map.
   /// The default value is <tt>GR::ArcMap<int></tt>.
   ///
-  /// \warning Length values should be \e non-negative \e integers.
+  /// \warning Length values should be \e non-negative.
   ///
   /// \note For finding node-disjoint paths this algorithm can be used
   /// along with the \ref SplitNodes adaptor.
@@ -252,10 +252,7 @@
                const LengthMap &length ) :
       _graph(graph), _length(length), _flow(0), _local_flow(false),
       _potential(0), _local_potential(false), _pred(graph)
-    {
-      LEMON_ASSERT(std::numeric_limits<Length>::is_integer,
-        "The length type of Suurballe must be integer");
-    }
+    {}
 
     /// Destructor.
     ~Suurballe() {



More information about the Lemon-commits mailing list