mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-27 02:53:13 +01:00
Disambiguate GenericValue's [0] and ["string"]
This commit is contained in:
@@ -218,7 +218,7 @@ TEST(Document, UTF16_Document) {
|
||||
json.Parse<kParseValidateEncodingFlag>(L"[{\"created_at\":\"Wed Oct 30 17:13:20 +0000 2012\"}]");
|
||||
|
||||
ASSERT_TRUE(json.IsArray());
|
||||
GenericValue< UTF16<> >& v = json[0u];
|
||||
GenericValue< UTF16<> >& v = json[0];
|
||||
ASSERT_TRUE(v.IsObject());
|
||||
|
||||
GenericValue< UTF16<> >& s = v[L"created_at"];
|
||||
|
||||
Reference in New Issue
Block a user