diff --git a/include/nod/DiscBase.hpp b/include/nod/DiscBase.hpp index 451d9d0..2721725 100644 --- a/include/nod/DiscBase.hpp +++ b/include/nod/DiscBase.hpp @@ -261,13 +261,19 @@ public: inline std::vector::iterator rawBegin() const {return m_childrenBegin;} inline std::vector::iterator rawEnd() const {return m_childrenEnd;} - class DirectoryIterator : std::iterator + class DirectoryIterator { friend class Node; std::vector::iterator m_it; DirectoryIterator(const std::vector::iterator& it) : m_it(it) {} public: + using iterator_category = std::forward_iterator_tag; + using value_type = Node; + using difference_type = std::ptrdiff_t; + using pointer = Node*; + using reference = Node&; + inline bool operator!=(const DirectoryIterator& other) {return m_it != other.m_it;} inline bool operator==(const DirectoryIterator& other) {return m_it == other.m_it;} inline DirectoryIterator& operator++()