From 34de6276b0fa30d7050c25978001736c8ad2e90c Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Wed, 6 Dec 2017 18:11:03 -1000 Subject: [PATCH] UWP fix --- include/nod/DiscBase.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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++()