mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Remove rowset_iterator post-increment operator
It doesn't make sense for an input iterator and didn't work correctly. Closes #1327.
This commit is contained in:
@@ -58,7 +58,8 @@ public:
|
||||
return &(operator*());
|
||||
}
|
||||
|
||||
// Iteration operators
|
||||
// Iteration operator: as this is an input operator, it only supports
|
||||
// pre-increment
|
||||
|
||||
rowset_iterator & operator++()
|
||||
{
|
||||
@@ -74,13 +75,6 @@ public:
|
||||
return (*this);
|
||||
}
|
||||
|
||||
rowset_iterator operator++(int)
|
||||
{
|
||||
rowset_iterator tmp(*this);
|
||||
++(*this);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
// Comparison operators
|
||||
|
||||
bool operator==(rowset_iterator const & rhs) const
|
||||
|
||||
Reference in New Issue
Block a user