From 0fc1749bd7b300b0ad7a6ec45eefff5ea9057a0f Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 2 Mar 2015 18:47:19 +0100 Subject: [PATCH] Fix MSVC14 compile break array_binary_tree_node::children_type::iterator pretends to be a bidirectional iterator but does not define operator--, which results in compile breaks with Visual C++ 2015. --- include/boost/graph/detail/array_binary_tree.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/graph/detail/array_binary_tree.hpp b/include/boost/graph/detail/array_binary_tree.hpp index 78755556..e59da9e1 100644 --- a/include/boost/graph/detail/array_binary_tree.hpp +++ b/include/boost/graph/detail/array_binary_tree.hpp @@ -63,6 +63,9 @@ public: inline iterator& operator++() { ++i; return *this; } inline iterator operator++(int) { iterator t = *this; ++(*this); return t; } + inline iterator& operator--() { --i; return *this; } + inline iterator operator--(int) + { iterator t = *this; --(*this); return t; } inline bool operator==(const iterator& x) const { return i == x.i; } inline bool operator!=(const iterator& x) const { return !(*this == x); }