Skip to content

Commit

Permalink
removed stream operator for iterator, resolution for nlohmann#125
Browse files Browse the repository at this point in the history
It doesn't really make sense to stream an iterator.
Besides, this was causing trouble in MSVC in Debug mode (see nlohmann#125)
  • Loading branch information
dariomt committed Oct 7, 2015
1 parent 57de1d6 commit 55cbd90
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 55cbd90

Please sign in to comment.