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
edc203a8
Unverified
Commit
edc203a8
authored
Aug 10, 2021
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
⚗
try minimal example
parent
0d530c9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
test/src/unit-disabled_exceptions.cpp
test/src/unit-disabled_exceptions.cpp
+2
-9
No files found.
test/src/unit-disabled_exceptions.cpp
View file @
edc203a8
...
...
@@ -76,11 +76,6 @@ class exception : public std::exception
protected:
exception
(
const
char
*
what_arg
)
:
m
(
what_arg
)
{}
static
std
::
string
name
(
const
std
::
string
&
ename
)
{
return
"[json.exception."
+
ename
+
"] "
;
}
private:
std
::
runtime_error
m
;
};
...
...
@@ -90,14 +85,12 @@ class parse_error : public exception
public:
static
parse_error
create
(
const
std
::
string
&
what_arg
)
{
std
::
string
w
=
exception
::
name
(
"parse_error"
)
+
what_arg
;
std
::
string
w
=
"[json.exception.parse_error] "
+
what_arg
;
return
parse_error
(
w
.
c_str
());
}
private:
parse_error
(
const
char
*
what_arg
)
:
exception
(
what_arg
)
{}
parse_error
(
const
char
*
what_arg
)
:
exception
(
what_arg
)
{}
};
}
// namespace detail2
...
...
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