Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredGan <ganshaolong@vip.qq.com>2019-07-16 15:18:56 +0300
committerGitHub <noreply@github.com>2019-07-16 15:18:56 +0300
commita133b16699693c38664f22cb25277e02b7f91a84 (patch)
tree9fda65e273eaeb80e8e5b2c324e55c339ed3c916
parent4b3d7c2f42142f10b888e580c515f60ca98e2ee9 (diff)
parentd87b698d0fcc10a5f632ecbc80a9cb2a8fa094a5 (diff)
Merge pull request #1 from Tencent/master
Change all GenericMemberIterator from struct to class
-rw-r--r--include/rapidjson/document.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h
index d1b90eb0..9783fe4a 100644
--- a/include/rapidjson/document.h
+++ b/include/rapidjson/document.h
@@ -205,17 +205,17 @@ private:
// class-based member iterator implementation disabled, use plain pointers
template <bool Const, typename Encoding, typename Allocator>
-struct GenericMemberIterator;
+class GenericMemberIterator;
//! non-const GenericMemberIterator
template <typename Encoding, typename Allocator>
-struct GenericMemberIterator<false,Encoding,Allocator> {
+class GenericMemberIterator<false,Encoding,Allocator> {
//! use plain pointer as iterator type
typedef GenericMember<Encoding,Allocator>* Iterator;
};
//! const GenericMemberIterator
template <typename Encoding, typename Allocator>
-struct GenericMemberIterator<true,Encoding,Allocator> {
+class GenericMemberIterator<true,Encoding,Allocator> {
//! use plain const pointer as iterator type
typedef const GenericMember<Encoding,Allocator>* Iterator;
};