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
COMP: Update json_(reader|writer).cpp to fix gcc6 build error
This commit backports open-source-parsers/jsoncpp@e105003 and
fixes error like this one:
```
/path/to/JsonCpp/src/lib_json/json_reader.cpp:47:14: error: ‘scoped_ptr’ in namespace ‘std’ does not name a template type
typedef std::scoped_ptr<CharReader> const CharReaderPtr;
^~~~~~~~~~
/path/to/JsonCpp/src/lib_json/json_reader.cpp: In function ‘bool Json::parseFromStream(const Json::CharReader::Factory&, std::istream&, Json::Value*, std::__cxx11::string*)’:
/path/to/JsonCpp/src/lib_json/json_reader.cpp:1820:3: error: ‘CharReaderPtr’ was not declared in this scope
CharReaderPtr const reader(fact.newCharReader());
^~~~~~~~~~~~~
/path/to/JsonCpp/src/lib_json/json_reader.cpp:1821:10: error: ‘reader’ was not declared in this scope
return reader->parse(begin, end, root, errs);
^~~~~~
/path/to/JsonCpp/src/lib_json/json_reader.cpp:1811:32: warning: unused parameter ‘fact’ [-Wunused-parameter]
CharReader::Factory const& fact, std::istream& sin,
^~~~
```
See http://slicer-devel.65872.n3.nabble.com/Slicer-gcc-6-tt4038282.html
and http://na-mic.org/Mantis/view.php?id=4268
0 commit comments