Remove unnecessary integer requirement in Suurballe (#323)
authorPeter Kovacs <kpeter@inf.elte.hu>
Thu, 15 Oct 2009 21:04:50 +0200
changeset 71830c77d1c0cba
parent 717 c67e235c832f
child 719 7bf1117178af
child 722 5b926cc36a4b
Remove unnecessary integer requirement in Suurballe (#323)
lemon/suurballe.h
     1.1 --- a/lemon/suurballe.h	Thu Oct 15 21:03:17 2009 +0200
     1.2 +++ b/lemon/suurballe.h	Thu Oct 15 21:04:50 2009 +0200
     1.3 @@ -55,7 +55,7 @@
     1.4    /// \tparam LEN The type of the length map.
     1.5    /// The default value is <tt>GR::ArcMap<int></tt>.
     1.6    ///
     1.7 -  /// \warning Length values should be \e non-negative \e integers.
     1.8 +  /// \warning Length values should be \e non-negative.
     1.9    ///
    1.10    /// \note For finding node-disjoint paths this algorithm can be used
    1.11    /// along with the \ref SplitNodes adaptor.
    1.12 @@ -252,10 +252,7 @@
    1.13                 const LengthMap &length ) :
    1.14        _graph(graph), _length(length), _flow(0), _local_flow(false),
    1.15        _potential(0), _local_potential(false), _pred(graph)
    1.16 -    {
    1.17 -      LEMON_ASSERT(std::numeric_limits<Length>::is_integer,
    1.18 -        "The length type of Suurballe must be integer");
    1.19 -    }
    1.20 +    {}
    1.21  
    1.22      /// Destructor.
    1.23      ~Suurballe() {