---
milena/ChangeLog | 4 ++++
milena/mln/accu/stat/median_h.hh | 19 ++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 360e77e..8008503 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,7 @@
+2011-04-05 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/accu/stat/median_h.hh: Add missing operator=().
+
2011-03-15 Guillaume Lazzara <z(a)lrde.epita.fr>
Regen generated files.
diff --git a/milena/mln/accu/stat/median_h.hh b/milena/mln/accu/stat/median_h.hh
index edd36f1..b38955d 100644
--- a/milena/mln/accu/stat/median_h.hh
+++ b/milena/mln/accu/stat/median_h.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -83,6 +84,7 @@ namespace mln
typedef V argument;
median_h();
+ median_h& operator=(const median_h& rhs);
/// Manipulators.
/// \{
@@ -133,6 +135,21 @@ namespace mln
template <typename V>
inline
+ median_h<V>&
+ median_h<V>::operator=(const median_h<V>& rhs)
+ {
+ h_ = rhs.h_;
+ sum_minus_ = rhs.sum_minus_;
+ sum_plus_ = rhs.sum_plus_;
+ valid_ = rhs.valid_;
+ i_ = rhs.i_;
+ t_ = rhs.t_;
+
+ return *this;
+ }
+
+ template <typename V>
+ inline
void
median_h<V>::take(const argument& t)
{
--
1.5.6.5
Show replies by date