3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-06 17:44:09 +00:00

hashlib iterator fix

This commit is contained in:
Clifford Wolf 2015-01-06 16:05:00 +01:00
parent 9fb715dc74
commit 859e3e41e7

View file

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