Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
cdf5327a
Commit
cdf5327a
authored
May 14, 2020
by
chenguoping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue#2086
parent
d7b032f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
include/nlohmann/json.hpp
include/nlohmann/json.hpp
+2
-1
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+2
-1
No files found.
include/nlohmann/json.hpp
View file @
cdf5327a
...
@@ -3759,7 +3759,8 @@ class basic_json
...
@@ -3759,7 +3759,8 @@ class basic_json
@since version 1.0.0
@since version 1.0.0
*/
*/
template
<
class
ValueType
,
typename
std
::
enable_if
<
template
<
class
ValueType
,
typename
std
::
enable_if
<
std
::
is_convertible
<
basic_json_t
,
ValueType
>
::
value
,
int
>::
type
=
0
>
std
::
is_convertible
<
basic_json_t
,
ValueType
>
::
value
and
not
std
::
is_same
<
value_t
,
ValueType
>::
value
,
int
>::
type
=
0
>
ValueType
value
(
const
typename
object_t
::
key_type
&
key
,
const
ValueType
&
default_value
)
const
ValueType
value
(
const
typename
object_t
::
key_type
&
key
,
const
ValueType
&
default_value
)
const
{
{
// at only works for objects
// at only works for objects
...
...
single_include/nlohmann/json.hpp
View file @
cdf5327a
...
@@ -19205,7 +19205,8 @@ class basic_json
...
@@ -19205,7 +19205,8 @@ class basic_json
@since version 1.0.0
@since version 1.0.0
*/
*/
template
<
class
ValueType
,
typename
std
::
enable_if
<
template
<
class
ValueType
,
typename
std
::
enable_if
<
std
::
is_convertible
<
basic_json_t
,
ValueType
>
::
value
,
int
>::
type
=
0
>
std
::
is_convertible
<
basic_json_t
,
ValueType
>
::
value
and
not
std
::
is_same
<
value_t
,
ValueType
>::
value
,
int
>::
type
=
0
>
ValueType
value
(
const
typename
object_t
::
key_type
&
key
,
const
ValueType
&
default_value
)
const
ValueType
value
(
const
typename
object_t
::
key_type
&
key
,
const
ValueType
&
default_value
)
const
{
{
// at only works for objects
// at only works for objects
...
...
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