1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

- reorganized payload

This commit is contained in:
Niels
2013-07-10 14:33:17 +02:00
parent ec6e628d4f
commit 4e6a400a23
3 changed files with 145 additions and 138 deletions

View File

@ -145,7 +145,7 @@ void test_string() {
{
// get payload
std::string* s1 = static_cast<std::string*>(a.data());
std::string* s1 = a.data().string;
std::string s2 = a;
assert(*s1 == s2);
}
@ -271,7 +271,7 @@ void test_array() {
{
// get payload
std::vector<JSON>* array = static_cast<std::vector<JSON>*>(a.data());
std::vector<JSON>* array = a.data().array;
assert(array->size() == a.size());
assert(array->empty() == a.empty());
}