---
milena/ChangeLog | 6 ++++++
milena/mln/accu/bbox.hh | 18 +++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 5385c0f..088fa67 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,10 @@
2008-10-14 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Add meta-accumulator for accu::bbox.
+ * milena/mln/accu/bbox.hh: add missing meta-accumulator.
+
+2008-10-14 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Add is_valid() in the accumulator concept and move meta-accumulators
in meta namespace.
* milena/mln/accu/count.hh,
@@ -34,6 +39,7 @@
* milena/tests/accu/nil.cc:
Fix tests.
+ * milena/mln/morpho/gradient_elementary.hh: Fix compilation.
2008-10-14 Guillaume Lazzara <z(a)lrde.epita.fr>
diff --git a/milena/mln/accu/bbox.hh b/milena/mln/accu/bbox.hh
index 9327b0f..b9e8259 100644
--- a/milena/mln/accu/bbox.hh
+++ b/milena/mln/accu/bbox.hh
@@ -33,8 +33,9 @@
* \brief Define an accumulator that computes a bbox.
*/
-# include <mln/accu/internal/base.hh>
# include <mln/core/site_set/box.hh>
+# include <mln/core/concept/meta_accumulator.hh>
+# include <mln/accu/internal/base.hh>
namespace mln
@@ -79,6 +80,21 @@ namespace mln
};
+ namespace meta
+ {
+
+ /// Meta accumulator for bbox.
+ struct bbox : public Meta_Accumulator< bbox >
+ {
+ template <typename T>
+ struct with
+ {
+ typedef mln::accu::bbox<T> ret;
+ };
+ };
+
+ } // end of namespace mln::accu::meta
+
# ifndef MLN_INCLUDE_ONLY
--
1.5.6.5
Show replies by date