From 55cbd903e8960ef8b4ddd41c37aa2eb551aed9de Mon Sep 17 00:00:00 2001 From: dariomt Date: Wed, 7 Oct 2015 17:50:53 +0200 Subject: [PATCH 1/2] removed stream operator for iterator, resolution for #125 It doesn't really make sense to stream an iterator. Besides, this was causing trouble in MSVC in Debug mode (see #125) --- src/json.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 7e174d72..8e747659 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -5729,12 +5729,6 @@ class basic_json return anchor != o.anchor; } - /// stream operator - friend std::ostream& operator<<(std::ostream& o, const iterator_wrapper_internal& w) - { - return o << w.value(); - } - /// return key of the iterator typename basic_json::string_t key() const { From 652e1caa7669f5d7f679367d202d8c2eff8f4160 Mon Sep 17 00:00:00 2001 From: dariomt Date: Mon, 19 Oct 2015 12:34:10 +0200 Subject: [PATCH 2/2] Apply same change to the re2c file --- src/json.hpp.re2c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 0ffddd50..fbdc5a9e 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -5729,12 +5729,6 @@ class basic_json return anchor != o.anchor; } - /// stream operator - friend std::ostream& operator<<(std::ostream& o, const iterator_wrapper_internal& w) - { - return o << w.value(); - } - /// return key of the iterator typename basic_json::string_t key() const {