Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenFit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
GenFit
Commits
c019b0fe
Commit
c019b0fe
authored
7 years ago
by
Nils Braun
Browse files
Options
Downloads
Patches
Plain Diff
Dynamic throw specifications are deprecated and removed in C++17 (by M. Ritter)
parent
95b67463
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/include/Exception.h
+2
-2
2 additions, 2 deletions
core/include/Exception.h
core/src/Exception.cc
+2
-2
2 additions, 2 deletions
core/src/Exception.cc
with
4 additions
and
4 deletions
core/include/Exception.h
+
2
−
2
View file @
c019b0fe
...
...
@@ -55,7 +55,7 @@ class Exception : public std::exception {
* @param file sourcefile in which the exception is created. Can be set through __FILE__ macro.
*/
Exception
(
std
::
string
excString
,
int
line
,
std
::
string
file
);
virtual
~
Exception
()
throw
()
;
virtual
~
Exception
()
noexcept
;
//! Set fatal flag.
void
setFatal
(
bool
b
=
true
){
fatal_
=
b
;}
...
...
@@ -70,7 +70,7 @@ class Exception : public std::exception {
void
info
();
//! Standard error message handling for exceptions. use like "std::cerr << e.what();"
virtual
const
char
*
what
()
const
throw
()
;
virtual
const
char
*
what
()
const
noexcept
;
std
::
string
getExcString
(){
return
excString_
;}
...
...
This diff is collapsed.
Click to expand it.
core/src/Exception.cc
+
2
−
2
View file @
c019b0fe
...
...
@@ -34,7 +34,7 @@ Exception::Exception(std::string excString, int line, std::string file) :
errorMessage_
=
ErrMsgStream
.
str
();
}
Exception
::~
Exception
()
throw
()
{
Exception
::~
Exception
()
noexcept
{
}
void
Exception
::
setNumbers
(
std
::
string
_numbersLabel
,
...
...
@@ -49,7 +49,7 @@ void Exception::setMatrices(std::string _matricesLabel,
matrices_
=
_matrices
;
}
const
char
*
Exception
::
what
()
const
throw
()
{
const
char
*
Exception
::
what
()
const
noexcept
{
return
errorMessage_
.
c_str
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment