Skip to content
Snippets Groups Projects
Commit b05b6d94 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix return address to local variable

parent 0a9bacf1
No related branches found
No related tags found
No related merge requests found
...@@ -66,14 +66,14 @@ public: ...@@ -66,14 +66,14 @@ public:
return *this; return *this;
} }
   
const_pair_foreach_iterator& operator++(int) { const_pair_foreach_iterator operator++(int) {
const_pair_foreach_iterator temp = *this; const_pair_foreach_iterator temp = *this;
++current1; ++current1;
++current2; ++current2;
return temp; return temp;
} }
   
const_pair_foreach_iterator& operator--(int) { const_pair_foreach_iterator operator--(int) {
const_pair_foreach_iterator temp = *this; const_pair_foreach_iterator temp = *this;
--current1; --current1;
--current2; --current2;
......
...@@ -101,13 +101,13 @@ public: ...@@ -101,13 +101,13 @@ public:
return *this; return *this;
} }
   
set_move_iterator& operator++(int) { set_move_iterator operator++(int) {
set_move_iterator temp = *this; set_move_iterator temp = *this;
++current; ++current;
return temp; return temp;
} }
   
set_move_iterator& operator--(int) { set_move_iterator operator--(int) {
set_move_iterator temp = *this; set_move_iterator temp = *this;
--current; --current;
return temp; return temp;
......
...@@ -56,13 +56,13 @@ public: ...@@ -56,13 +56,13 @@ public:
return *this; return *this;
} }
   
ptr_vector_iterator& operator++(int) { ptr_vector_iterator operator++(int) {
ptr_vector_iterator temp = *this; ptr_vector_iterator temp = *this;
++current; ++current;
return temp; return temp;
} }
   
ptr_vector_iterator& operator--(int) { ptr_vector_iterator operator--(int) {
ptr_vector_iterator temp = *this; ptr_vector_iterator temp = *this;
--current; --current;
return temp; return temp;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment