# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1401512414 -7200
# Sat May 31 07:00:14 2014 +0200
# Node ID a16b2b2a8c4e06f1f1856f6c57c392743412cb81
# Parent e00d7b681d8e8fa6cc94353e9b30388b27138043
Add missing include header and std:: namespace spec. (#487)
diff --git a/lemon/dim2.h b/lemon/dim2.h
a
|
b
|
|
20 | 20 | #define LEMON_DIM2_H |
21 | 21 | |
22 | 22 | #include <iostream> |
| 23 | #include <algorithm> |
23 | 24 | |
24 | 25 | ///\ingroup geomdat |
25 | 26 | ///\file |
diff --git a/lemon/math.h b/lemon/math.h
a
|
b
|
|
67 | 67 | |
68 | 68 | ///Round a value to its closest integer |
69 | 69 | inline double round(double r) { |
70 | | return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5); |
| 70 | return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5); |
71 | 71 | } |
72 | 72 | |
73 | 73 | /// @} |