Commit e8484a52 authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

add missing const to various iterator (non)equality operator overloads

parent d42b3acd
......@@ -162,7 +162,7 @@ public:
*
* \return bool true if iterators of this class are equal to iterators of the other class
*/
bool operator ==( const const_tuple_foreach_iterator < Iterators ... > & other ) {
bool operator ==( const const_tuple_foreach_iterator < Iterators ... > & other ) const {
return this->current == other.current;
}
......@@ -174,7 +174,7 @@ public:
*
* \return bool true if iterators of this class are not equal to iterators of the other class
*/
bool operator !=( const const_tuple_foreach_iterator < Iterators ... > & other ) {
bool operator !=( const const_tuple_foreach_iterator < Iterators ... > & other ) const {
return !( * this == other );
}
......@@ -382,7 +382,7 @@ public:
*
* \return bool true if this and other classes hold the same value
*/
bool operator ==( const virtual_pointer_to_integer < IntegralType > & other ) {
bool operator ==( const virtual_pointer_to_integer < IntegralType > & other ) const {
return this->m_data == other.m_data;
}
......@@ -394,7 +394,7 @@ public:
*
* \return bool true if this and other classes hold different value
*/
bool operator !=( const virtual_pointer_to_integer < IntegralType > & other ) {
bool operator !=( const virtual_pointer_to_integer < IntegralType > & other ) const {
return !( * this == other );
}
};
......
......@@ -181,7 +181,7 @@ public:
*
* \return true if the two iterators underlying iterators are equal
*/
bool operator== (const set_move_iterator<Iterator>& other) {
bool operator== (const set_move_iterator<Iterator>& other) const {
return this->current == other.current;
}
......@@ -193,7 +193,7 @@ public:
*
* \return true if the two iterators underlying iterators are not equal
*/
bool operator!= (const set_move_iterator<Iterator>& other) {
bool operator!= (const set_move_iterator<Iterator>& other) const {
return ! ( *this == other );
}
......@@ -247,7 +247,7 @@ public:
* \brief
* The value type is essentially the value_type of adapted iterator but constructed here to avoid consts.
*/
typedef typename std::pair < KeyType, ValueType > value_type;
typedef typename std::pair < KeyType, ValueType > value_type;
/**
* \brief
......@@ -368,7 +368,7 @@ public:
*
* \return true if the two iterators underlying iterators are equal
*/
bool operator== (const map_move_iterator<Iterator, KeyType, ValueType>& other) {
bool operator== (const map_move_iterator<Iterator, KeyType, ValueType>& other) const {
return this->current == other.current;
}
......@@ -380,7 +380,7 @@ public:
*
* \return true if the two iterators underlying iterators are not equal
*/
bool operator!= (const map_move_iterator<Iterator, KeyType, ValueType>& other) {
bool operator!= (const map_move_iterator<Iterator, KeyType, ValueType>& other) const {
return ! ( *this == other );
}
......
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