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
efdfd3aa
Unverified
Commit
efdfd3aa
authored
Aug 01, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚡
replaced by-value call #673
parent
76ecb2bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
json.hpp
src/json.hpp
+2
-2
No files found.
src/json.hpp
View file @
efdfd3aa
...
@@ -10363,7 +10363,7 @@ class basic_json
...
@@ -10363,7 +10363,7 @@ class basic_json
*/
*/
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
,
int
>::
type
=
0
>
ValueType
value
(
const
typename
object_t
::
key_type
&
key
,
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
if
(
JSON_LIKELY
(
is_object
()))
if
(
JSON_LIKELY
(
is_object
()))
...
@@ -10435,7 +10435,7 @@ class basic_json
...
@@ -10435,7 +10435,7 @@ class basic_json
*/
*/
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
,
int
>::
type
=
0
>
ValueType
value
(
const
json_pointer
&
ptr
,
ValueType
default_value
)
const
ValueType
value
(
const
json_pointer
&
ptr
,
const
ValueType
&
default_value
)
const
{
{
// at only works for objects
// at only works for objects
if
(
JSON_LIKELY
(
is_object
()))
if
(
JSON_LIKELY
(
is_object
()))
...
...
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