# HG changeset patch # User alpar # Date 1172923027 0 # Node ID 317b9a88c35041278fa8fd9b580cd3d1b165839f # Parent 81b47fc5c4442b8c9ce87a8a60b522d5e372c7a6 Fix icc compilation failures diff -r 81b47fc5c444 -r 317b9a88c350 lemon/preflow.h --- a/lemon/preflow.h Fri Mar 02 18:04:28 2007 +0000 +++ b/lemon/preflow.h Sat Mar 03 11:57:07 2007 +0000 @@ -59,14 +59,14 @@ ///\param Num The number type of the capacities and the flow values. ///\param CapacityMap The capacity map type. ///\param FlowMap The flow map type. - ///\param Tolerance The tolerance type. + ///\param Tol The tolerance type. /// ///\author Jacint Szabo ///\todo Second template parameter is superfluous template , typename FlowMap=typename Graph::template EdgeMap, - typename Tolerance=Tolerance > + typename Tol=Tolerance > class Preflow { protected: typedef typename Graph::Node Node; @@ -84,7 +84,7 @@ const CapacityMap* _capacity; FlowMap* _flow; - Tolerance _surely; + Tol _surely; int _node_num; //the number of nodes of G @@ -155,13 +155,13 @@ ///\param _t The target node. ///\param _cap The capacity of the edges. ///\param _f The flow of the edges. - ///\param _sr Tolerance class. + ///\param _sr Tol class. ///Except the graph, all of these parameters can be reset by ///calling \ref source, \ref target, \ref capacityMap and \ref ///flowMap, resp. Preflow(const Graph& _gr, Node _s, Node _t, const CapacityMap& _cap, FlowMap& _f, - const Tolerance &_sr=Tolerance()) : + const Tol &_sr=Tol()) : _g(&_gr), _source(_s), _target(_t), _capacity(&_cap), _flow(&_f), _surely(_sr), _node_num(countNodes(_gr)), level(_gr), excess(_gr,0), @@ -174,7 +174,7 @@ ///Give a reference to the tolerance handler class ///\sa Tolerance - Tolerance &tolerance() { return _surely; } + Tol &tolerance() { return _surely; } ///Runs the preflow algorithm. diff -r 81b47fc5c444 -r 317b9a88c350 lemon/random.h --- a/lemon/random.h Fri Mar 02 18:04:28 2007 +0000 +++ b/lemon/random.h Sat Mar 03 11:57:07 2007 +0000 @@ -308,8 +308,8 @@ template ::digits < - std::numeric_limits::digits> + bool one_word = (std::numeric_limits::digits < + std::numeric_limits::digits) > struct Mapping { static Result map(RandomCore& rnd, const Result& bound) { Word max = Word(bound - 1);