[Lemon-commits] Alpar Juttner: Add missing include header and st...
Lemon HG
hg at lemon.cs.elte.hu
Mon Jul 7 12:00:10 CEST 2014
details: http://lemon.cs.elte.hu/hg/lemon/rev/6aea07d5ca48
changeset: 1311:6aea07d5ca48
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Sat May 31 07:00:14 2014 +0200
description:
Add missing include header and std:: namespace spec. (#487)
diffstat:
lemon/dim2.h | 1 +
lemon/math.h | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diffs (23 lines):
diff --git a/lemon/dim2.h b/lemon/dim2.h
--- a/lemon/dim2.h
+++ b/lemon/dim2.h
@@ -20,6 +20,7 @@
#define LEMON_DIM2_H
#include <iostream>
+#include <algorithm>
///\ingroup geomdat
///\file
diff --git a/lemon/math.h b/lemon/math.h
--- a/lemon/math.h
+++ b/lemon/math.h
@@ -67,7 +67,7 @@
///Round a value to its closest integer
inline double round(double r) {
- return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
+ return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5);
}
/// @}
More information about the Lemon-commits
mailing list