Add missing include header and std:: namespace spec. (#487)
authorAlpar Juttner <alpar@cs.elte.hu>
Sat, 31 May 2014 07:00:14 +0200
changeset 11126aea07d5ca48
parent 1111 fc35e3ff4bea
child 1113 f747a0ddbbf6
Add missing include header and std:: namespace spec. (#487)
lemon/dim2.h
lemon/math.h
     1.1 --- a/lemon/dim2.h	Thu May 08 17:20:25 2014 +0200
     1.2 +++ b/lemon/dim2.h	Sat May 31 07:00:14 2014 +0200
     1.3 @@ -20,6 +20,7 @@
     1.4  #define LEMON_DIM2_H
     1.5  
     1.6  #include <iostream>
     1.7 +#include <algorithm>
     1.8  
     1.9  ///\ingroup geomdat
    1.10  ///\file
     2.1 --- a/lemon/math.h	Thu May 08 17:20:25 2014 +0200
     2.2 +++ b/lemon/math.h	Sat May 31 07:00:14 2014 +0200
     2.3 @@ -67,7 +67,7 @@
     2.4  
     2.5    ///Round a value to its closest integer
     2.6    inline double round(double r) {
     2.7 -    return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
     2.8 +    return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5);
     2.9    }
    2.10  
    2.11    /// @}