
https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008 Index: ChangeLog from Ugo Jardonnet <ugo.jardonnet@lrde.epita.fr> Remove a std::size_t. In my opinion nelements must not return size_t. * milena/mln/core/site_set/p_image.hh, * milena/mln/core/image/image3d.hh: Here. image/image3d.hh | 4 ++-- site_set/p_image.hh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) Index: milena/mln/core/site_set/p_image.hh --- milena/mln/core/site_set/p_image.hh (revision 2766) +++ milena/mln/core/site_set/p_image.hh (working copy) @@ -115,7 +115,7 @@ bool is_valid() const; /// Give the number of sites. - std::size_t nsites() const; + unsigned nsites() const; /// Insertion element associated type. @@ -149,7 +149,7 @@ private: I ima_; - std::size_t nsites_; + unsigned nsites_; }; @@ -198,7 +198,7 @@ template <typename I> inline - std::size_t + unsigned p_image<I>::nsites() const { return nsites_; Index: milena/mln/core/image/image3d.hh --- milena/mln/core/image/image3d.hh (revision 2766) +++ milena/mln/core/image/image3d.hh (working copy) @@ -184,7 +184,7 @@ unsigned border() const; /// Give the number of cells (points including border ones). - std::size_t nelements() const; + unsigned nelements() const; /// Read-only access to the image value located at point \p p. const T& operator()(const point3d& p) const; @@ -426,7 +426,7 @@ template <typename T> inline - std::size_t + unsigned image3d<T>::nelements() const { mln_precondition(this->has_data());