Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
c4b1b118
Commit
c4b1b118
authored
9 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
[exception] std::exception::what is virtual
parent
2c78bf88
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
Feature/dune exception derived from std exception
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/exceptions.hh
+3
-3
3 additions, 3 deletions
dune/common/exceptions.hh
with
3 additions
and
3 deletions
dune/common/exceptions.hh
+
3
−
3
View file @
c4b1b118
...
...
@@ -95,9 +95,9 @@ namespace Dune {
public:
Exception
();
void
message
(
const
std
::
string
&
msg
);
//!< store string in internal message buffer
const
char
*
what
()
const
noexcept
;
//!< output internal message buffer
virtual
const
char
*
what
()
const
noexcept
;
//!< output internal message buffer
static
void
registerHook
(
ExceptionHook
*
hook
);
//!< add a functor which is called before a Dune::Exception is emitted (see Dune::ExceptionHook) \see Dune::ExceptionHook
static
void
clearHook
();
//!< remove all hooks
static
void
clearHook
();
//!< remove all hooks
private:
std
::
string
_message
;
static
ExceptionHook
*
_hook
;
...
...
@@ -199,7 +199,7 @@ namespace Dune {
_message
=
msg
;
}
inline
const
char
*
Exception
::
what
()
const
noexcept
const
char
*
Exception
::
what
()
const
noexcept
{
return
_message
.
data
();
}
...
...
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