mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix postfix increment operator of Settings::iterator
This commit is contained in:
parent
aba710a70e
commit
4674ac2091
@ -428,7 +428,7 @@ public:
|
||||
const const_reference & operator *() const { return ref; }
|
||||
const const_reference * operator ->() const { return &ref; }
|
||||
const_iterator & operator ++() { ++ref.member; return *this; }
|
||||
const_iterator & operator ++(int) { const_iterator tmp = *this; ++*this; return tmp; }
|
||||
const_iterator operator ++(int) { const_iterator tmp = *this; ++*this; return tmp; }
|
||||
bool operator ==(const const_iterator & rhs) const { return ref.member == rhs.ref.member && ref.collection == rhs.ref.collection; }
|
||||
bool operator !=(const const_iterator & rhs) const { return !(*this == rhs); }
|
||||
protected:
|
||||
@ -445,7 +445,7 @@ public:
|
||||
reference & operator *() const { return this->ref; }
|
||||
reference * operator ->() const { return &this->ref; }
|
||||
iterator & operator ++() { const_iterator::operator ++(); return *this; }
|
||||
iterator & operator ++(int) { iterator tmp = *this; ++*this; return tmp; }
|
||||
iterator operator ++(int) { iterator tmp = *this; ++*this; return tmp; }
|
||||
};
|
||||
|
||||
/// Returns the number of settings.
|
||||
|
Loading…
Reference in New Issue
Block a user