Commit 789761ae authored by Milo Yip's avatar Milo Yip

Fixes compilation error

‘>>’ should be ‘> >’ within a nested template argument list
parent bcf7cee7
......@@ -244,7 +244,7 @@ struct GenericStringStream {
};
template <typename Encoding>
struct StreamTraits<GenericStringStream<Encoding>> {
struct StreamTraits<GenericStringStream<Encoding> > {
typedef GenericStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
};
......@@ -280,7 +280,7 @@ struct GenericInsituStringStream {
};
template <typename Encoding>
struct StreamTraits<GenericInsituStringStream<Encoding>> {
struct StreamTraits<GenericInsituStringStream<Encoding> > {
typedef GenericInsituStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
};
......
......@@ -626,7 +626,7 @@ private:
namespace rapidjson {
template <typename Encoding>
struct StreamTraits<CustomStringStream<Encoding>> {
struct StreamTraits<CustomStringStream<Encoding> > {
typedef CustomStringStream<Encoding> StreamCopyType;
};
......@@ -635,7 +635,7 @@ struct StreamTraits<CustomStringStream<Encoding>> {
TEST(Reader, CustomStringStream) {
const char* json = "{ \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3] } ";
CustomStringStream<UTF8<char>> s(json);
CustomStringStream<UTF8<char> > s(json);
ParseObjectHandler h;
Reader reader;
reader.ParseObject<0>(s, h);
......
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