Skip to content

Commit ebc003e

Browse files
committed
Make GenericMemberIterator::Iterator public again (RAPIDJSON_NOMEMBERITERATORCLASS)
d87b698 made all definitions of GenericMemberIterator consistent as classes (they were structs with RAPIDJSON_NOMEMBERITERATORCLASS defined), but it didn't keep the member definitions public. document.h:586:71: error: 'Iterator' is a private member of 'rapidjson::GenericMemberIterator<false, rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >' typedef typename GenericMemberIterator<false,Encoding,Allocator>::Iterator MemberIterator; //!< Member iterator for i... ^ document.h:2124:32: note: in instantiation of template class 'rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >' requested here class GenericDocument : public GenericValue<Encoding, Allocator> {
1 parent fcec773 commit ebc003e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/rapidjson/document.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,14 @@ class GenericMemberIterator;
210210
//! non-const GenericMemberIterator
211211
template <typename Encoding, typename Allocator>
212212
class GenericMemberIterator<false,Encoding,Allocator> {
213+
public:
213214
//! use plain pointer as iterator type
214215
typedef GenericMember<Encoding,Allocator>* Iterator;
215216
};
216217
//! const GenericMemberIterator
217218
template <typename Encoding, typename Allocator>
218219
class GenericMemberIterator<true,Encoding,Allocator> {
220+
public:
219221
//! use plain const pointer as iterator type
220222
typedef const GenericMember<Encoding,Allocator>* Iterator;
221223
};

0 commit comments

Comments
 (0)