Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more appropriate istreambuf_iterator in the streaming.cc example
Used in the example std::istream_iterator skips whitespace and thus a parser can produce unexpected reult, e.g.: Input: [{"x":"test space","y":20}] Output: "testspace",20 std::istreambuf_iterator does not skip whitespace, so is more appropriate: Output: "test space",20 More info: http://en.cppreference.com/w/cpp/iterator/istream_iterator (see "Notes" section).
- Loading branch information