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

fix operator -- in dereferencing iterator

parent 9e1298ce
No related branches found
No related tags found
No related merge requests found
......@@ -690,7 +690,7 @@ public:
* \return the modified iterator
*/
dereferencing_iterator < Iterator > & operator -- ( ) {
++ m_base;
-- m_base;
return * this;
}
 
......@@ -704,7 +704,7 @@ public:
*/
dereferencing_iterator < Iterator > operator -- ( int ) {
auto tmp = * this;
++ m_base;
-- m_base;
return tmp;
}
 
......
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