* mln/core/faces_iter.hh
(mln::faces_fwd_iter_<N, D>::faces_fwd_iter_)
(mln::faces_bkd_iter_<N, D>::faces_bkd_iter_):
New default ctor.
---
milena/ChangeLog | 9 +++++++++
milena/mln/core/faces_iter.hh | 20 +++++++++++++++++++-
2 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 6c19869..e4a915e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,14 @@
2008-09-13 Roland Levillain <roland(a)lrde.epita.fr>
+ Add default ctors for iterators on faces.
+
+ * mln/core/faces_iter.hh
+ (mln::faces_fwd_iter_<N, D>::faces_fwd_iter_)
+ (mln::faces_bkd_iter_<N, D>::faces_bkd_iter_):
+ New default ctor.
+
+2008-09-13 Roland Levillain <roland(a)lrde.epita.fr>
+
* mln/io/pnm/load.hh: Fix dates in copyright header.
2008-09-12 Roland Levillain <roland(a)lrde.epita.fr>
diff --git a/milena/mln/core/faces_iter.hh b/milena/mln/core/faces_iter.hh
index e11073d..d16eaa7 100644
--- a/milena/mln/core/faces_iter.hh
+++ b/milena/mln/core/faces_iter.hh
@@ -64,6 +64,7 @@ namespace mln
public:
/// Construction and assignment.
/// \{
+ faces_fwd_iter_();
// FIXME: See above (internal::complex_iter_base_'s default ctor).
faces_fwd_iter_(complex<D>& c);
faces_fwd_iter_(const self_& rhs);
@@ -110,6 +111,7 @@ namespace mln
public:
/// Construction and assignment.
/// \{
+ faces_bkd_iter_();
// FIXME: See above (internal::complex_iter_base_'s default ctor).
faces_bkd_iter_(complex<D>& c);
faces_bkd_iter_(const self_& rhs);
@@ -138,6 +140,15 @@ namespace mln
template <unsigned N, unsigned D>
inline
+ faces_fwd_iter_<N, D>::faces_fwd_iter_()
+ : super_()
+ {
+ // Ensure N is compatible with D.
+ metal::bool_< N <= D >::check();
+ }
+
+ template <unsigned N, unsigned D>
+ inline
faces_fwd_iter_<N, D>::faces_fwd_iter_(complex<D>& c)
: super_(c)
{
@@ -199,7 +210,14 @@ namespace mln
| faces_bkd_iter_<N, D>. |
`------------------------*/
- // FIXME: Resume here.
+ template <unsigned N, unsigned D>
+ inline
+ faces_bkd_iter_<N, D>::faces_bkd_iter_()
+ : super_()
+ {
+ // Ensure N is compatible with D.
+ metal::bool_< N <= D >::check();
+ }
template <unsigned N, unsigned D>
inline
--
1.6.0.1
Show replies by date