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
90780318
Unverified
Commit
90780318
authored
Jun 07, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🏁
fix MSVC 2015 compilation
parent
bf2e714e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
include/nlohmann/detail/input/lexer.hpp
include/nlohmann/detail/input/lexer.hpp
+6
-6
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+6
-6
No files found.
include/nlohmann/detail/input/lexer.hpp
View file @
90780318
...
...
@@ -1450,18 +1450,18 @@ scan_number_done:
// literals
case
't'
:
{
char_type
true_literal
[]
=
"true"
;
return
scan_literal
(
true_literal
,
4
,
token_type
::
literal_true
);
std
::
array
<
char_type
,
4
>
true_literal
=
{{
't'
,
'r'
,
'u'
,
'e'
}}
;
return
scan_literal
(
true_literal
.
data
(),
true_literal
.
size
()
,
token_type
::
literal_true
);
}
case
'f'
:
{
char_type
false_literal
[]
=
"false"
;
return
scan_literal
(
false_literal
,
5
,
token_type
::
literal_false
);
std
::
array
<
char_type
,
5
>
false_literal
=
{{
'f'
,
'a'
,
'l'
,
's'
,
'e'
}}
;
return
scan_literal
(
false_literal
.
data
(),
false_literal
.
size
()
,
token_type
::
literal_false
);
}
case
'n'
:
{
char_type
null_literal
[]
=
"null"
;
return
scan_literal
(
null_literal
,
4
,
token_type
::
literal_null
);
std
::
array
<
char_type
,
4
>
null_literal
=
{{
'n'
,
'u'
,
'l'
,
'l'
}}
;
return
scan_literal
(
null_literal
.
data
(),
null_literal
.
size
()
,
token_type
::
literal_null
);
}
// string
...
...
single_include/nlohmann/json.hpp
View file @
90780318
...
...
@@ -9514,18 +9514,18 @@ scan_number_done:
// literals
case
't'
:
{
char_type
true_literal
[]
=
"true"
;
return
scan_literal
(
true_literal
,
4
,
token_type
::
literal_true
);
std
::
array
<
char_type
,
4
>
true_literal
=
{{
't'
,
'r'
,
'u'
,
'e'
}}
;
return
scan_literal
(
true_literal
.
data
(),
true_literal
.
size
()
,
token_type
::
literal_true
);
}
case
'f'
:
{
char_type
false_literal
[]
=
"false"
;
return
scan_literal
(
false_literal
,
5
,
token_type
::
literal_false
);
std
::
array
<
char_type
,
5
>
false_literal
=
{{
'f'
,
'a'
,
'l'
,
's'
,
'e'
}}
;
return
scan_literal
(
false_literal
.
data
(),
false_literal
.
size
()
,
token_type
::
literal_false
);
}
case
'n'
:
{
char_type
null_literal
[]
=
"null"
;
return
scan_literal
(
null_literal
,
4
,
token_type
::
literal_null
);
std
::
array
<
char_type
,
4
>
null_literal
=
{{
'n'
,
'u'
,
'l'
,
'l'
}}
;
return
scan_literal
(
null_literal
.
data
(),
null_literal
.
size
()
,
token_type
::
literal_null
);
}
// string
...
...
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