Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MJPA/SimpleJSON.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSONValue.h')
-rw-r--r--src/JSONValue.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/JSONValue.h b/src/JSONValue.h
index 02d0fab..e7024f9 100644
--- a/src/JSONValue.h
+++ b/src/JSONValue.h
@@ -79,11 +79,16 @@ class JSONValue
static std::wstring Indent(size_t depth);
JSONType type;
- std::wstring string_value;
- bool bool_value;
- double number_value;
- JSONArray array_value;
- JSONObject object_value;
+
+ union
+ {
+ bool bool_value;
+ double number_value;
+ std::wstring *string_value;
+ JSONArray *array_value;
+ JSONObject *object_value;
+ };
+
};
#endif