File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ class JSON_API Value {
133
133
typedef Json::LargestUInt LargestUInt;
134
134
typedef Json::ArrayIndex ArrayIndex;
135
135
136
- static const Value& null;
136
+ static const Value& null; // /! We regret this reference to a global instance; prefer the simpler Value().
137
+ static const Value& nullRef; // /! just a kludge for binary-compatibility; same as null
137
138
// / Minimum signed integer value that can be stored in a Json::Value.
138
139
static const LargestInt minLargestInt;
139
140
// / Maximum signed integer value that can be stored in a Json::Value.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ namespace Json {
36
36
static const unsigned char ALIGNAS (8 ) kNull [sizeof (Value)] = { 0 };
37
37
const unsigned char & kNullRef = kNull [0 ];
38
38
const Value& Value::null = reinterpret_cast <const Value&>(kNullRef );
39
+ const Value& Value::nullRef = null;
39
40
40
41
const Int Value::minInt = Int (~(UInt (-1 ) / 2 ));
41
42
const Int Value::maxInt = Int (UInt (-1 ) / 2 );
You can’t perform that action at this time.
0 commit comments