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
889f269a
Unverified
Commit
889f269a
authored
Jul 11, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
replace further alternative operators
parent
b2240f75
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
binary_writer.hpp
include/nlohmann/detail/output/binary_writer.hpp
+2
-2
json.hpp
include/nlohmann/json.hpp
+3
-3
json.hpp
single_include/nlohmann/json.hpp
+5
-5
No files found.
include/nlohmann/detail/output/binary_writer.hpp
View file @
889f269a
...
@@ -1497,8 +1497,8 @@ class binary_writer
...
@@ -1497,8 +1497,8 @@ class binary_writer
void
write_compact_float
(
const
number_float_t
n
,
detail
::
input_format_t
format
)
void
write_compact_float
(
const
number_float_t
n
,
detail
::
input_format_t
format
)
{
{
if
(
static_cast
<
double
>
(
n
)
>=
static_cast
<
double
>
(
std
::
numeric_limits
<
float
>::
lowest
())
and
if
(
static_cast
<
double
>
(
n
)
>=
static_cast
<
double
>
(
std
::
numeric_limits
<
float
>::
lowest
())
&&
static_cast
<
double
>
(
n
)
<=
static_cast
<
double
>
((
std
::
numeric_limits
<
float
>::
max
)())
and
static_cast
<
double
>
(
n
)
<=
static_cast
<
double
>
((
std
::
numeric_limits
<
float
>::
max
)())
&&
static_cast
<
double
>
(
static_cast
<
float
>
(
n
))
==
static_cast
<
double
>
(
n
))
static_cast
<
double
>
(
static_cast
<
float
>
(
n
))
==
static_cast
<
double
>
(
n
))
{
{
oa
->
write_character
(
format
==
detail
::
input_format_t
::
cbor
oa
->
write_character
(
format
==
detail
::
input_format_t
::
cbor
...
...
include/nlohmann/json.hpp
View file @
889f269a
...
@@ -5883,9 +5883,9 @@ class basic_json
...
@@ -5883,9 +5883,9 @@ class basic_json
@since version 1.0.0
@since version 1.0.0
*/
*/
friend
void
swap
(
reference
left
,
reference
right
)
noexcept
(
friend
void
swap
(
reference
left
,
reference
right
)
noexcept
(
std
::
is_nothrow_move_constructible
<
value_t
>::
value
and
std
::
is_nothrow_move_constructible
<
value_t
>::
value
&&
std
::
is_nothrow_move_assignable
<
value_t
>::
value
and
std
::
is_nothrow_move_assignable
<
value_t
>::
value
&&
std
::
is_nothrow_move_constructible
<
json_value
>::
value
and
std
::
is_nothrow_move_constructible
<
json_value
>::
value
&&
std
::
is_nothrow_move_assignable
<
json_value
>::
value
std
::
is_nothrow_move_assignable
<
json_value
>::
value
)
)
{
{
...
...
single_include/nlohmann/json.hpp
View file @
889f269a
...
@@ -13825,8 +13825,8 @@ class binary_writer
...
@@ -13825,8 +13825,8 @@ class binary_writer
void
write_compact_float
(
const
number_float_t
n
,
detail
::
input_format_t
format
)
void
write_compact_float
(
const
number_float_t
n
,
detail
::
input_format_t
format
)
{
{
if
(
static_cast
<
double
>
(
n
)
>=
static_cast
<
double
>
(
std
::
numeric_limits
<
float
>::
lowest
())
and
if
(
static_cast
<
double
>
(
n
)
>=
static_cast
<
double
>
(
std
::
numeric_limits
<
float
>::
lowest
())
&&
static_cast
<
double
>
(
n
)
<=
static_cast
<
double
>
((
std
::
numeric_limits
<
float
>::
max
)())
and
static_cast
<
double
>
(
n
)
<=
static_cast
<
double
>
((
std
::
numeric_limits
<
float
>::
max
)())
&&
static_cast
<
double
>
(
static_cast
<
float
>
(
n
))
==
static_cast
<
double
>
(
n
))
static_cast
<
double
>
(
static_cast
<
float
>
(
n
))
==
static_cast
<
double
>
(
n
))
{
{
oa
->
write_character
(
format
==
detail
::
input_format_t
::
cbor
oa
->
write_character
(
format
==
detail
::
input_format_t
::
cbor
...
@@ -21779,9 +21779,9 @@ class basic_json
...
@@ -21779,9 +21779,9 @@ class basic_json
@since version 1.0.0
@since version 1.0.0
*/
*/
friend
void
swap
(
reference
left
,
reference
right
)
noexcept
(
friend
void
swap
(
reference
left
,
reference
right
)
noexcept
(
std
::
is_nothrow_move_constructible
<
value_t
>::
value
and
std
::
is_nothrow_move_constructible
<
value_t
>::
value
&&
std
::
is_nothrow_move_assignable
<
value_t
>::
value
and
std
::
is_nothrow_move_assignable
<
value_t
>::
value
&&
std
::
is_nothrow_move_constructible
<
json_value
>::
value
and
std
::
is_nothrow_move_constructible
<
json_value
>::
value
&&
std
::
is_nothrow_move_assignable
<
json_value
>::
value
std
::
is_nothrow_move_assignable
<
json_value
>::
value
)
)
{
{
...
...
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