Skip to content

0.y.z build fails with gcc 6.3 #600

Closed
@fedorov

Description

@fedorov

Errors:

/home/work/dcmqi/jsoncpp/jsoncpp.cpp:234:14: error: 'scoped_ptr' in namespace 'std' does not name a template type
 typedef std::scoped_ptr<CharReader> const  CharReaderPtr;
              ^~~~~~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp: In function 'bool Json::parseFromStream(const Json::CharReader::Factory&, std::istream&, Json::Value*, std::__cxx11::string*)':
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:2007:3: error: 'CharReaderPtr' was not declared in this scope
   CharReaderPtr const reader(fact.newCharReader());
   ^~~~~~~~~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:2008:10: error: 'reader' was not declared in this scope
   return reader->parse(begin, end, root, errs);
          ^~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp: At global scope:
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:3803:14: error: 'scoped_ptr' in namespace 'std' does not name a template type
 typedef std::scoped_ptr<StreamWriter> const  StreamWriterPtr;
              ^~~~~~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp: In function 'std::__cxx11::string Json::writeString(const Json::StreamWriter::Factory&, const Json::Value&)':
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:4924:3: error: 'StreamWriterPtr' was not declared in this scope
   StreamWriterPtr const writer(builder.newStreamWriter());
   ^~~~~~~~~~~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:4925:3: error: 'writer' was not declared in this scope
   writer->write(root, &sout);
   ^~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp: In function 'std::ostream& Json::operator<<(std::ostream&, const Json::Value&)':
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:4931:3: error: 'StreamWriterPtr' was not declared in this scope
   StreamWriterPtr const writer(builder.newStreamWriter());
   ^~~~~~~~~~~~~~~
/home/work/dcmqi/jsoncpp/jsoncpp.cpp:4932:3: error: 'writer' was not declared in this scope
   writer->write(root, &sout);
   ^~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions