Skip to content
Snippets Groups Projects
Commit 210ce85f authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Make getIterationStep return std::shared_ptr instead of &

This allows to avoid casting trickery in the calling code.
parent 8ecddd67
No related branches found
No related tags found
1 merge request!23WIP: Make getiterationstep return shared ptr
...@@ -88,15 +88,15 @@ namespace Dune { ...@@ -88,15 +88,15 @@ namespace Dune {
} }
/** \brief Get iteration step */ /** \brief Get iteration step */
const ItStep& getIterationStep() const const std::shared_ptr<ItStep> getIterationStep() const
{ {
return *iterationStep_; return iterationStep_;
} }
/** \brief Get iteration step */ /** \brief Get iteration step */
ItStep& getIterationStep() std::shared_ptr<ItStep> getIterationStep()
{ {
return *iterationStep_; return iterationStep_;
} }
/** \brief Set the error norm */ /** \brief Set the error norm */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment