Disambiguate GenericValue's [0] and ["string"]

This commit is contained in:
Zhihao Yuan
2014-10-23 11:44:16 -04:00
committed by Zhihao Yuan
parent 0d90bcc709
commit 7303d92990
4 changed files with 52 additions and 54 deletions

View File

@@ -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"];