hello author, I find a expression that in json_reader.cpp 566 line. like this: bool badTokenType = ( token.type_ == tokenArraySeparator && token.type_ == tokenArrayEnd ); the boolean expression always return false. I think not '&&' but '||', do you thing so ?
Seems fine to me. That token must be either
tokenArraySeparator
ortokenArrayEnd
at that point.Then it should be:
bool badTokenType = ( token.type_ != tokenArraySeparator && token.type_ != tokenArrayEnd );
("!=" unstead of "=="), or?
Maybe your version is out of date. Look here:
https://github.com/open-source-parsers/jsoncpp/blob/master/src/lib_json/json_reader.cpp#L483
That looks correct to me. It's "de morgan" equivalent to
Indeed - my version is 0.5.0 which seems to be the current "official" version. And in 0.5.0 it's "==" instead of "!=".
Which version would you recommend?
Use the latest from GitHub. If you need a tarball, GitHub can supply that.