* mln/util/multi_site.hh
(operator==(const multi_site<P>&, const multi_site<P>&)): New.
---
milena/ChangeLog | 7 +++++++
milena/mln/util/multi_site.hh | 15 +++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 94a09bc..2cb56bd 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2008-10-24 Roland Levillain <roland(a)lrde.epita.fr>
+ Add operator== on mln::util::multi_site to please mln::p_queue_fast.
+
+ * mln/util/multi_site.hh
+ (operator==(const multi_site<P>&, const multi_site<P>&)): New.
+
+2008-10-24 Roland Levillain <roland(a)lrde.epita.fr>
+
Update mln/trait/ch_value.hh w.r.t. mln::complex_image.
* mln/trait/ch_value.hh
diff --git a/milena/mln/util/multi_site.hh b/milena/mln/util/multi_site.hh
index 6eb046d..2480369 100644
--- a/milena/mln/util/multi_site.hh
+++ b/milena/mln/util/multi_site.hh
@@ -75,6 +75,13 @@ namespace mln
};
+ /* FIXME: Required by an assertion in mln::p_queue_fast<P>::has();
+ shouldn't there be no requirements on sites? */
+ template <typename P>
+ bool
+ operator==(const multi_site<P>& lhs, const multi_site<P>& rhs);
+
+
# ifndef MLN_INCLUDE_ONLY
@@ -129,6 +136,14 @@ namespace mln
return sites[0];
}
+
+ template <typename P>
+ bool
+ operator==(const multi_site<P>& lhs, const multi_site<P>& rhs)
+ {
+ return lhs.sites == rhs.sites;
+ }
+
# endif // ! MLN_INCLUDE_ONLY
} // end of mln::util
--
1.5.6.5
Show replies by date