# HG changeset patch # User Peter Kovacs # Date 2009-10-15 21:04:50 # Node ID 30c77d1c0cba549cb3f5309642d576cfa9c16534 # Parent c67e235c832ff2ceb8cb0dd46df952afb98867c8 Remove unnecessary integer requirement in Suurballe (#323) 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 GR::ArcMap. /// - /// \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::is_integer, - "The length type of Suurballe must be integer"); - } + {} /// Destructor. ~Suurballe() {