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
f3e43d7c
Unverified
Commit
f3e43d7c
authored
Apr 09, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
some cleanup
parent
186a9fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/json.hpp
src/json.hpp
+11
-8
No files found.
src/json.hpp
View file @
f3e43d7c
...
...
@@ -8626,6 +8626,9 @@ class basic_json
}
};
// a type to simplify interfaces
using
input_adapter_t
=
std
::
shared_ptr
<
input_adapter
>
;
/// input adapter for cached stream input
class
cached_input_stream_adapter
:
public
input_adapter
{
...
...
@@ -8783,8 +8786,8 @@ class basic_json
class
binary_reader
{
public:
explicit
binary_reader
(
std
::
shared_ptr
<
input_adapter
>
a
)
:
ia
(
a
),
is_little_endian
(
little_endianess
())
explicit
binary_reader
(
input_adapter_t
adapter
)
:
ia
(
a
dapter
),
is_little_endian
(
little_endianess
())
{}
/*!
...
...
@@ -9807,7 +9810,7 @@ class basic_json
private:
/// input adapter
std
::
shared_ptr
<
input_adapter
>
ia
=
nullptr
;
input_adapter_t
ia
=
nullptr
;
/// the current character
int
current
=
std
::
char_traits
<
char
>::
eof
();
...
...
@@ -10761,8 +10764,8 @@ class basic_json
}
}
explicit
lexer
(
std
::
shared_ptr
<
input_adapter
>
a
)
:
ia
(
a
),
decimal_point_char
(
get_decimal_point
())
explicit
lexer
(
input_adapter_t
adapter
)
:
ia
(
a
dapter
),
decimal_point_char
(
get_decimal_point
())
{}
private:
...
...
@@ -12118,7 +12121,7 @@ scan_number_done:
private:
/// input adapter
std
::
shared_ptr
<
input_adapter
>
ia
=
nullptr
;
input_adapter_t
ia
=
nullptr
;
/// the current character
int
current
=
std
::
char_traits
<
char
>::
eof
();
...
...
@@ -12157,9 +12160,9 @@ scan_number_done:
{
public:
/// a parser reading from an input adapter
explicit
parser
(
std
::
shared_ptr
<
input_adapter
>
ia
,
explicit
parser
(
input_adapter_t
adapter
,
const
parser_callback_t
cb
=
nullptr
)
:
callback
(
cb
),
m_lexer
(
ia
)
:
callback
(
cb
),
m_lexer
(
adapter
)
{}
/*!
...
...
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