Skip to content

Commit

Permalink
Change all GenericMemberIterator from struct to class
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Jun 28, 2019
1 parent 4b3d7c2 commit d87b698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/rapidjson/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,17 @@ class GenericMemberIterator {
// 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;
};
Expand Down

0 comments on commit d87b698

Please sign in to comment.