mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 23:07:55 +02:00
gcc-6 lacks auto_ptr<>
This commit is contained in:
@@ -43,7 +43,11 @@ static int stackDepth_g = 0; // see readValue()
|
||||
|
||||
namespace Json {
|
||||
|
||||
typedef std::auto_ptr<CharReader> CharReaderPtr;
|
||||
#if __GNUC__ >= 6
|
||||
typedef std::scoped_ptr<CharReader> const CharReaderPtr;
|
||||
#else
|
||||
typedef std::auto_ptr<CharReader> CharReaderPtr;
|
||||
#endif
|
||||
|
||||
// Implementation of class Features
|
||||
// ////////////////////////////////
|
||||
|
@@ -54,7 +54,11 @@
|
||||
|
||||
namespace Json {
|
||||
|
||||
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
|
||||
#if __GNUC__ >= 6
|
||||
typedef std::scoped_ptr<StreamWriter> const StreamWriterPtr;
|
||||
#else
|
||||
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
|
||||
#endif
|
||||
|
||||
static bool containsControlCharacter(const char* str) {
|
||||
while (*str) {
|
||||
|
Reference in New Issue
Block a user