mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
fix(LinearHashTable): fix std::iterator deprecated warnings; test warnings #4235
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include <functional>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <cstddef>
|
||||
|
||||
|
||||
@@ -67,9 +66,15 @@ public:
|
||||
typedef typename Bucket::iterator BucketIterator;
|
||||
typedef typename BucketVec::iterator BucketVecIterator;
|
||||
|
||||
class ConstIterator: public std::iterator<std::forward_iterator_tag, Value>
|
||||
class ConstIterator
|
||||
{
|
||||
public:
|
||||
using iterator_category = std::forward_iterator_tag;
|
||||
using value_type = Value;
|
||||
using difference_type = ptrdiff_t;
|
||||
using pointer = Value*;
|
||||
using reference = Value&;
|
||||
|
||||
ConstIterator(): _initialized(false)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user