From 789761ae1b52b6a8da55dd5b394c47f0850d3203 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Sun, 29 Jun 2014 21:18:31 +0800 Subject: [PATCH] Fixes compilation error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘>>’ should be ‘> >’ within a nested template argument list --- include/rapidjson/rapidjson.h | 4 ++-- test/unittest/readertest.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/rapidjson/rapidjson.h b/include/rapidjson/rapidjson.h index be3d7fa..29fe0ee 100644 --- a/include/rapidjson/rapidjson.h +++ b/include/rapidjson/rapidjson.h @@ -244,7 +244,7 @@ struct GenericStringStream { }; template -struct StreamTraits> { +struct StreamTraits > { typedef GenericStringStream StreamCopyType; // Enable stream copy optimization. }; @@ -280,7 +280,7 @@ struct GenericInsituStringStream { }; template -struct StreamTraits> { +struct StreamTraits > { typedef GenericInsituStringStream StreamCopyType; // Enable stream copy optimization. }; diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index 5cf937e..bc4e49d 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -626,7 +626,7 @@ private: namespace rapidjson { template -struct StreamTraits> { +struct StreamTraits > { typedef CustomStringStream StreamCopyType; }; @@ -635,7 +635,7 @@ struct StreamTraits> { TEST(Reader, CustomStringStream) { const char* json = "{ \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3] } "; - CustomStringStream> s(json); + CustomStringStream > s(json); ParseObjectHandler h; Reader reader; reader.ParseObject<0>(s, h);