eldbus-cxx: Fixed infinite recursion with post-increment operator
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 29 Dec 2015 13:37:27 +0000 (11:37 -0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 29 Dec 2015 13:37:27 +0000 (11:37 -0200)
The pre-increment operator was being defined twice and being
implemented as a post-increment. Modified declaration to be
post-increment as it was supposed to be.

src/bindings/eldbus_cxx/eldbus_message.hh

index 8c4caf2..3f9e15d 100644 (file)
@@ -77,7 +77,7 @@ struct message_iterator
       }
     return *this;
   }
-  message_iterator operator++() const
+  message_iterator operator++(int)
   {
     message_iterator tmp(*this);
     ++*this;