mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-30 13:47:15 +01:00
Fixes compilation error
‘>>’ should be ‘> >’ within a nested template argument list
This commit is contained in:
@@ -244,7 +244,7 @@ struct GenericStringStream {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename Encoding>
|
template <typename Encoding>
|
||||||
struct StreamTraits<GenericStringStream<Encoding>> {
|
struct StreamTraits<GenericStringStream<Encoding> > {
|
||||||
typedef GenericStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
|
typedef GenericStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -280,7 +280,7 @@ struct GenericInsituStringStream {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename Encoding>
|
template <typename Encoding>
|
||||||
struct StreamTraits<GenericInsituStringStream<Encoding>> {
|
struct StreamTraits<GenericInsituStringStream<Encoding> > {
|
||||||
typedef GenericInsituStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
|
typedef GenericInsituStringStream<Encoding> StreamCopyType; // Enable stream copy optimization.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -626,7 +626,7 @@ private:
|
|||||||
namespace rapidjson {
|
namespace rapidjson {
|
||||||
|
|
||||||
template <typename Encoding>
|
template <typename Encoding>
|
||||||
struct StreamTraits<CustomStringStream<Encoding>> {
|
struct StreamTraits<CustomStringStream<Encoding> > {
|
||||||
typedef CustomStringStream<Encoding> StreamCopyType;
|
typedef CustomStringStream<Encoding> StreamCopyType;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -635,7 +635,7 @@ struct StreamTraits<CustomStringStream<Encoding>> {
|
|||||||
|
|
||||||
TEST(Reader, CustomStringStream) {
|
TEST(Reader, CustomStringStream) {
|
||||||
const char* json = "{ \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3] } ";
|
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;
|
ParseObjectHandler h;
|
||||||
Reader reader;
|
Reader reader;
|
||||||
reader.ParseObject<0>(s, h);
|
reader.ParseObject<0>(s, h);
|
||||||
|
|||||||
Reference in New Issue
Block a user