From 64d6daa76ee1eabaa1bd7590730a7968dbff78cd Mon Sep 17 00:00:00 2001 From: Mike Bogdanov Date: Thu, 7 Dec 2017 11:28:28 +0300 Subject: [PATCH] iter_impl template conformance with C++17 --- src/json.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index 670c7b72..23d42054 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -3631,7 +3631,7 @@ This class implements a both iterators (iterator and const_iterator) for the iterators in version 3.0.0 (see https://github.com/nlohmann/json/issues/593) */ template -class iter_impl : public std::iterator +class iter_impl { /// allow basic_json to access private members friend iter_impl::value, typename std::remove_const::type, const BasicJsonType>::type>; @@ -3645,6 +3645,14 @@ class iter_impl : public std::iterator