File tree 3 files changed +6
-2
lines changed 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ static int stackDepth_g = 0; // see readValue()
43
43
44
44
namespace Json {
45
45
46
- #if __GNUC__ >= 6
46
+ #if defined(JSON_USE_SCOPED_PTR)
47
47
typedef std::scoped_ptr<CharReader> const CharReaderPtr;
48
48
#else
49
49
typedef std::auto_ptr<CharReader> CharReaderPtr;
Original file line number Diff line number Diff line change 12
12
* It is an internal header that must not be exposed.
13
13
*/
14
14
15
+ #if defined(__GNUC__) && (__GNUC__ >= 6)
16
+ #define JSON_USE_SCOPED_PTR
17
+ #endif
18
+
15
19
namespace Json {
16
20
17
21
// / Converts a unicode code-point to UTF-8.
Original file line number Diff line number Diff line change 54
54
55
55
namespace Json {
56
56
57
- #if __GNUC__ >= 6
57
+ #if defined(JSON_USE_SCOPED_PTR)
58
58
typedef std::scoped_ptr<StreamWriter> const StreamWriterPtr;
59
59
#else
60
60
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
You can’t perform that action at this time.
0 commit comments