mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-12 10:03:51 +01:00
gcc-6 lacks auto_ptr<>
This commit is contained in:
parent
dde8426ded
commit
e105003bb5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user