* mln/convert/impl/from_double_to_value.hh,
* mln/convert/impl/from_float_to_value.hh: Here.
---
milena/ChangeLog | 7 +++++++
milena/mln/convert/impl/from_double_to_value.hh | 10 +++++-----
milena/mln/convert/impl/from_float_to_value.hh | 10 +++++-----
3 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index cb06617..d712c79 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2013-03-08 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Update use of math::round.
+
+ * mln/convert/impl/from_double_to_value.hh,
+ * mln/convert/impl/from_float_to_value.hh: Here.
+
+2013-03-08 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* doc/.gitignore: exclude .dox files.
2013-03-08 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/milena/mln/convert/impl/from_double_to_value.hh
b/milena/mln/convert/impl/from_double_to_value.hh
index 6da9dd0..9b70f8e 100644
--- a/milena/mln/convert/impl/from_double_to_value.hh
+++ b/milena/mln/convert/impl/from_double_to_value.hh
@@ -1,5 +1,5 @@
-// Copyright (C) 2009, 2010, 2011, 2012 EPITA Research and Development
-// Laboratory (LRDE)
+// Copyright (C) 2009, 2010, 2011, 2012, 2013 EPITA Research and
+// Development Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -72,7 +72,7 @@ namespace mln
from_double_to_value(const double& from,
mln::value::Integer<V>& to)
{
- exact(to) = math::round<V>()(from);
+ exact(to) = math::round<V>(from);
}
// Case 2:
@@ -134,7 +134,7 @@ namespace mln
from_to_(const double& from, unsigned& to)
{
mln_precondition(from >= 0);
- to = math::round<unsigned>()(from);
+ to = math::round<unsigned>(from);
}
// double -> int
@@ -142,7 +142,7 @@ namespace mln
void
from_to_(const double& from, int& to)
{
- to = math::round<int>()(from);
+ to = math::round<int>(from);
}
# endif // ! MLN_INCLUDE_ONLY
diff --git a/milena/mln/convert/impl/from_float_to_value.hh
b/milena/mln/convert/impl/from_float_to_value.hh
index 8ec1d74..8d87f38 100644
--- a/milena/mln/convert/impl/from_float_to_value.hh
+++ b/milena/mln/convert/impl/from_float_to_value.hh
@@ -1,4 +1,4 @@
-// Copyright (C) 2008, 2009, 2010, 2011, 2012 EPITA Research and
+// Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 EPITA Research and
// Development Laboratory (LRDE)
//
// This file is part of Olena.
@@ -75,7 +75,7 @@ namespace mln
from_float_to_value(const float& from,
mln::value::Integer<V>& to)
{
- exact(to) = math::round<V>()(from);
+ exact(to) = math::round<V>(from);
}
// Case 2:
@@ -137,7 +137,7 @@ namespace mln
from_to_(const float& from, unsigned& to)
{
mln_precondition(from >= 0);
- to = math::round<unsigned>()(from);
+ to = math::round<unsigned>(from);
}
// float-> int
@@ -145,7 +145,7 @@ namespace mln
void
from_to_(const float& from, int& to)
{
- to = math::round<int>()(from);
+ to = math::round<int>(from);
}
// float-> short
@@ -153,7 +153,7 @@ namespace mln
void
from_to_(const float& from, short& to)
{
- to = math::round<short>()(from);
+ to = math::round<short>(from);
}
--
1.7.2.5