Fix a gcc compilation error

This commit is contained in:
Milo Yip 2014-08-17 18:55:36 +08:00
parent 941aa93f45
commit d6513e251c

View File

@ -31,7 +31,7 @@ using namespace rapidjson;
template <typename Allocator, typename StackAllocator> template <typename Allocator, typename StackAllocator>
void ParseTest() { void ParseTest() {
typedef GenericDocument<UTF8<>, Allocator, StackAllocator> DocumentType; typedef GenericDocument<UTF8<>, Allocator, StackAllocator> DocumentType;
typedef DocumentType::ValueType ValueType; typedef typename DocumentType::ValueType ValueType;
DocumentType doc; DocumentType doc;
doc.Parse(" { \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } "); doc.Parse(" { \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } ");