Commit f1072390 authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix a precondition (Trac ticket #256).



	* mln/core/internal/site_relative_iterator_base.hh: Here.
Signed-off-by: Roland Levillain's avatarRoland Levillain <roland@lrde.epita.fr>
parent be96bce6
2012-10-02 Guillaume Lazzara <z@lrde.epita.fr>
Fix a precondition (Trac ticket #256).
* mln/core/internal/site_relative_iterator_base.hh: Here.
2014-04-02 Roland Levillain <roland@lrde.epita.fr> 2014-04-02 Roland Levillain <roland@lrde.epita.fr>
   
Milena: Streamline mln/test/positive.cc. Milena: Streamline mln/test/positive.cc.
...@@ -195,7 +195,8 @@ namespace mln ...@@ -195,7 +195,8 @@ namespace mln
const mln_psite(S)& const mln_psite(S)&
site_relative_iterator_base<S,E,C>::subj_() site_relative_iterator_base<S,E,C>::subj_()
{ {
mln_assertion(exact(this)->compute_p_() == p_); // valid => exact(this)->compute_p_() == p_
mln_assertion(!this->is_valid() || exact(this)->compute_p_() == p_);
return p_; return p_;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment