Commit 6ee10aa7 authored by Mathieu Deltorre's avatar Mathieu Deltorre
Browse files

Correction operator+ et operator- sur iterator

Pb de modification de la position de l'iterateur instance
Corrigé en construisant un nouvel iterateur, et donc l'iterateur pointe toujours sur sa position definie
parent c9d71276
......@@ -157,17 +157,17 @@ public:
/**
* Add
*/
Iterator& operator+(int i){
m_Iter=m_Iter+i;
return *this;
Iterator operator+(int i){
Iterator lIter(m_Iter+i);
return lIter;
};
/**
* Remove
*/
Iterator& operator-(int i){
m_Iter=m_Iter-i;
return *this;
Iterator operator-(int i){
Iterator lIter(m_Iter-i);
return lIter;
};
/**
* Difference comparison operator.
......
Markdown is supported
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