Skip to content
Snippets Groups Projects
Commit a845f04e authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Prettify by const_casting the reference directly

parent c36cba24
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -123,7 +123,7 @@ namespace Dune {
{
mgTransfer_.resize(transfer.size());
for(size_t j=0; j<transfer.size(); ++j)
mgTransfer_[j] = Dune::stackobject_to_shared_ptr(*const_cast<DerivedTransfer*>(&transfer[j]));
mgTransfer_[j] = Dune::stackobject_to_shared_ptr(const_cast<DerivedTransfer&>(transfer[j]));
}
virtual void iterate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment