[Lemon-commits] [lemon_svn] deba: r1771 - hugo/trunk/src/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:47:27 CET 2006


Author: deba
Date: Sat Apr  9 21:32:06 2005
New Revision: 1771

Modified:
   hugo/trunk/src/lemon/fib_heap.h

Log:
Make standard conform. // math.h -> cmath



Modified: hugo/trunk/src/lemon/fib_heap.h
==============================================================================
--- hugo/trunk/src/lemon/fib_heap.h	(original)
+++ hugo/trunk/src/lemon/fib_heap.h	Sat Apr  9 21:32:06 2005
@@ -23,7 +23,7 @@
 
 #include <vector>
 #include <functional>
-#include <math.h>
+#include <cmath>
 
 namespace lemon {
   
@@ -383,7 +383,7 @@
     typename Compare>
   void FibHeap<Item, Prio, ItemIntMap, Compare>::balance() {      
 
-    int maxdeg=int( floor( 2.08*log(double(container.size()))))+1;
+    int maxdeg=int( std::floor( 2.08*log(double(container.size()))))+1;
   
     std::vector<int> A(maxdeg,-1); 
     



More information about the Lemon-commits mailing list