* mln/core/site_set/box.hh: Use a local variable of type P instead of
point2d.
---
milena/ChangeLog | 7 +++++++
milena/mln/core/site_set/box.hh | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index d1e9441..f1488d0 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2008-10-27 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Fix a compilation issue.
+
+ * mln/core/site_set/box.hh: Use a local variable of type P instead of
+ point2d.
+
+2008-10-27 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Fix return type of i2v::array::operator().
* mln/fun/i2v/array.hh (operator() const): Return a reference instead of a copy.
diff --git a/milena/mln/core/site_set/box.hh b/milena/mln/core/site_set/box.hh
index 9a03897..5a47fa1 100644
--- a/milena/mln/core/site_set/box.hh
+++ b/milena/mln/core/site_set/box.hh
@@ -351,7 +351,7 @@ namespace mln
box<P>::center() const
{
mln_precondition(is_valid());
- point2d center;
+ P center;
for (unsigned i = 0; i < P::dim; ++i)
center[i] = pmin_[i] + ((pmax_[i] - pmin_[i]) / 2);
return center;
--
1.5.6.5