Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
2e156cca
Commit
2e156cca
authored
Jun 30, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33 from miloyip/MoveStructMember
Fixes IBM XL C/C++ for AIX issue
parents
a2240e26
a9356c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
document.h
include/rapidjson/document.h
+17
-5
No files found.
include/rapidjson/document.h
View file @
2e156cca
...
...
@@ -12,6 +12,22 @@
namespace
rapidjson
{
// Forward declaration.
template
<
typename
Encoding
,
typename
Allocator
>
class
GenericValue
;
//! Name-value pair in an object.
/*!
This class was internal to GenericValue. It used to be a inner struct.
But a compiler (IBM XL C/C++ for AIX) have reported to have problem with that so it moved as a namespace scope struct.
https://code.google.com/p/rapidjson/issues/detail?id=64
*/
template
<
typename
Encoding
,
typename
Allocator
>
struct
GenericMember
{
GenericValue
<
Encoding
,
Allocator
>
name
;
//!< name of member (must be a string)
GenericValue
<
Encoding
,
Allocator
>
value
;
//!< value of member.
};
///////////////////////////////////////////////////////////////////////////////
// GenericValue
...
...
@@ -30,11 +46,7 @@ template <typename Encoding, typename Allocator = MemoryPoolAllocator<> >
class
GenericValue
{
public
:
//! Name-value pair in an object.
struct
Member
{
GenericValue
<
Encoding
,
Allocator
>
name
;
//!< name of member (must be a string)
GenericValue
<
Encoding
,
Allocator
>
value
;
//!< value of member.
};
typedef
GenericMember
<
Encoding
,
Allocator
>
Member
;
typedef
Encoding
EncodingType
;
//!< Encoding type from template parameter.
typedef
Allocator
AllocatorType
;
//!< Allocator type from template parameter.
typedef
typename
Encoding
::
Ch
Ch
;
//!< Character type derived from Encoding.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment