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
524eea58
Unverified
Commit
524eea58
authored
Jan 26, 2021
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
👌
remove unused template parameter
parent
74cc0ab4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
232 additions
and
304 deletions
+232
-304
include/nlohmann/detail/exceptions.hpp
include/nlohmann/detail/exceptions.hpp
+8
-8
single_include/nlohmann/json.hpp
single_include/nlohmann/json.hpp
+224
-296
No files found.
include/nlohmann/detail/exceptions.hpp
View file @
524eea58
...
...
@@ -114,9 +114,9 @@ class exception : public std::exception
return
"("
+
std
::
accumulate
(
tokens
.
rbegin
(),
tokens
.
rend
(),
std
::
string
{},
[](
const
std
::
string
&
a
,
const
std
::
string
&
b
)
{
return
a
+
"/"
+
detail
::
escape
(
b
);
})
+
") "
;
{
return
a
+
"/"
+
detail
::
escape
(
b
);
})
+
") "
;
#else
return
""
;
#endif
...
...
@@ -188,7 +188,7 @@ class parse_error : public exception
static
parse_error
create
(
int
id_
,
const
position_t
&
pos
,
const
std
::
string
&
what_arg
,
const
BasicJsonType
&
context
)
{
std
::
string
w
=
exception
::
name
(
"parse_error"
,
id_
)
+
"parse error"
+
position_string
(
pos
)
+
": "
+
exception
::
diagnostics
<
BasicJsonType
>
(
context
)
+
what_arg
;
position_string
(
pos
)
+
": "
+
exception
::
diagnostics
(
context
)
+
what_arg
;
return
parse_error
(
id_
,
pos
.
chars_read_total
,
w
.
c_str
());
}
...
...
@@ -197,7 +197,7 @@ class parse_error : public exception
{
std
::
string
w
=
exception
::
name
(
"parse_error"
,
id_
)
+
"parse error"
+
(
byte_
!=
0
?
(
" at byte "
+
std
::
to_string
(
byte_
))
:
""
)
+
": "
+
exception
::
diagnostics
<
BasicJsonType
>
(
context
)
+
what_arg
;
": "
+
exception
::
diagnostics
(
context
)
+
what_arg
;
return
parse_error
(
id_
,
byte_
,
w
.
c_str
());
}
...
...
@@ -321,7 +321,7 @@ class type_error : public exception
template
<
typename
BasicJsonType
>
static
type_error
create
(
int
id_
,
const
std
::
string
&
what_arg
,
const
BasicJsonType
&
context
)
{
std
::
string
w
=
exception
::
name
(
"type_error"
,
id_
)
+
exception
::
diagnostics
<
BasicJsonType
>
(
context
)
+
what_arg
;
std
::
string
w
=
exception
::
name
(
"type_error"
,
id_
)
+
exception
::
diagnostics
(
context
)
+
what_arg
;
return
type_error
(
id_
,
w
.
c_str
());
}
...
...
@@ -369,7 +369,7 @@ class out_of_range : public exception
template
<
typename
BasicJsonType
>
static
out_of_range
create
(
int
id_
,
const
std
::
string
&
what_arg
,
const
BasicJsonType
&
context
)
{
std
::
string
w
=
exception
::
name
(
"out_of_range"
,
id_
)
+
exception
::
diagnostics
<
BasicJsonType
>
(
context
)
+
what_arg
;
std
::
string
w
=
exception
::
name
(
"out_of_range"
,
id_
)
+
exception
::
diagnostics
(
context
)
+
what_arg
;
return
out_of_range
(
id_
,
w
.
c_str
());
}
...
...
@@ -408,7 +408,7 @@ class other_error : public exception
template
<
typename
BasicJsonType
>
static
other_error
create
(
int
id_
,
const
std
::
string
&
what_arg
,
const
BasicJsonType
&
context
)
{
std
::
string
w
=
exception
::
name
(
"other_error"
,
id_
)
+
exception
::
diagnostics
<
BasicJsonType
>
(
context
)
+
what_arg
;
std
::
string
w
=
exception
::
name
(
"other_error"
,
id_
)
+
exception
::
diagnostics
(
context
)
+
what_arg
;
return
other_error
(
id_
,
w
.
c_str
());
}
...
...
single_include/nlohmann/json.hpp
View file @
524eea58
This diff is collapsed.
Click to expand it.
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