Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
acd748e1
Commit
acd748e1
authored
Jun 23, 2020
by
gatopeich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use std::map default allocator as a placeholder
to extract the actual ObjectType::value_type Still fails on older compilers (GCC <= 5.5)
parent
49623a75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
json.hpp
include/nlohmann/json.hpp
+6
-3
json.hpp
single_include/nlohmann/json.hpp
+6
-3
No files found.
include/nlohmann/json.hpp
View file @
acd748e1
...
@@ -496,9 +496,12 @@ class basic_json
...
@@ -496,9 +496,12 @@ class basic_json
using
object_t
=
ObjectType
<
StringType
,
using
object_t
=
ObjectType
<
StringType
,
basic_json
,
basic_json
,
object_comparator_t
,
object_comparator_t
,
// Note: instantiating ObjectType with dummy allocator to extract ::value_type
// Note the use of std::map default allocator as a placeholder
AllocatorType
<
typename
ObjectType
<
StringType
,
basic_json
,
object_comparator_t
,
AllocatorType
<
int
>
// to extract the actual ObjectType::value_type
>::
value_type
>>
;
AllocatorType
<
typename
ObjectType
<
StringType
,
basic_json
,
object_comparator_t
,
std
::
allocator
<
std
::
pair
<
const
StringType
,
basic_json
>>
>::
value_type
>>
;
/*!
/*!
@brief a type for an array
@brief a type for an array
...
...
single_include/nlohmann/json.hpp
View file @
acd748e1
...
@@ -16348,9 +16348,12 @@ class basic_json
...
@@ -16348,9 +16348,12 @@ class basic_json
using
object_t
=
ObjectType
<
StringType
,
using
object_t
=
ObjectType
<
StringType
,
basic_json
,
basic_json
,
object_comparator_t
,
object_comparator_t
,
// Note: instantiating ObjectType with dummy allocator to extract ::value_type
// Note the use of std::map default allocator as a placeholder
AllocatorType
<
typename
ObjectType
<
StringType
,
basic_json
,
object_comparator_t
,
AllocatorType
<
int
>
// to extract the actual ObjectType::value_type
>::
value_type
>>
;
AllocatorType
<
typename
ObjectType
<
StringType
,
basic_json
,
object_comparator_t
,
std
::
allocator
<
std
::
pair
<
const
StringType
,
basic_json
>>
>::
value_type
>>
;
/*!
/*!
@brief a type for an array
@brief a type for an array
...
...
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