From eb910ee9163935af3824bec870cebbd38fbc172d Mon Sep 17 00:00:00 2001 From: Tanki Zhang Date: Wed, 4 Apr 2018 19:59:34 -0500 Subject: [PATCH] This patch fixed the compiled error which prevent user from deriving from std::iterator when using C++17 compiler. --- include/yaml-cpp/node/detail/iterator.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/yaml-cpp/node/detail/iterator.h b/include/yaml-cpp/node/detail/iterator.h index deec8fb..dcde76d 100644 --- a/include/yaml-cpp/node/detail/iterator.h +++ b/include/yaml-cpp/node/detail/iterator.h @@ -19,8 +19,7 @@ namespace detail { struct iterator_value; template -class iterator_base : public std::iterator { +class iterator_base { private: template @@ -37,8 +36,11 @@ class iterator_base : public std::iterator