You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::istream_iterator (actually, std::istream_iterator<char>) skips whitespace depending on the configuration of the underlying stream, and input streams are configured to skip whitespace by default.
So, the sample with std::istream_iterator in README ignores whitespace in string in JSON.
To fix this, std::noskipws manipulator should be applied to the stream, or the sample needs to use std::istreambuf_iterator<char> instead.
The text was updated successfully, but these errors were encountered:
sakichan
changed the title
parse sample with istrream_iterator in README ignores whitespace in string
parse sample with istream_iterator in README ignores whitespace in string
Jul 14, 2018
std::istream_iterator
(actually,std::istream_iterator<char>
) skips whitespace depending on the configuration of the underlying stream, and input streams are configured to skip whitespace by default.So, the sample with
std::istream_iterator
in README ignores whitespace in string in JSON.To fix this,
std::noskipws
manipulator should be applied to the stream, or the sample needs to usestd::istreambuf_iterator<char>
instead.The text was updated successfully, but these errors were encountered: