Commit d6513e25 authored by Milo Yip's avatar Milo Yip

Fix a gcc compilation error

parent 941aa93f
...@@ -31,7 +31,7 @@ using namespace rapidjson; ...@@ -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] } ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment