hashlib iterator fix
authorClifford Wolf <clifford@clifford.at>
Tue, 6 Jan 2015 15:05:00 +0000 (16:05 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 6 Jan 2015 15:05:00 +0000 (16:05 +0100)
kernel/hashlib.h

index 5e00e89d6798e7571786a9c2fc7f8333937a2f12..72e9bc2ef9f3d39080fdb1b0f33fff05f6f2499c 100644 (file)
@@ -287,7 +287,7 @@ class dict
        }
 
 public:
-       class const_iterator
+       class const_iterator : public std::iterator<std::forward_iterator_tag, std::pair<K, T>>
        {
                friend class dict;
        protected:
@@ -304,7 +304,7 @@ public:
                const std::pair<K, T> *operator->() const { return &ptr->entries[index].udata; }
        };
 
-       class iterator
+       class iterator : public std::iterator<std::forward_iterator_tag, std::pair<K, T>>
        {
                friend class dict;
        protected:
@@ -609,7 +609,7 @@ class pool
        }
 
 public:
-       class const_iterator
+       class const_iterator : public std::iterator<std::forward_iterator_tag, K>
        {
                friend class pool;
        protected:
@@ -625,7 +625,7 @@ public:
                const K *operator->() const { return &ptr->entries[index].udata; }
        };
 
-       class iterator
+       class iterator : public std::iterator<std::forward_iterator_tag, K>
        {
                friend class pool;
        protected: