Commit 49f206a3 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Use Dune::Std::make_unique

parent 8aed2af6
......@@ -76,8 +76,7 @@ namespace Dune {
virtual std::unique_ptr<Functional<RT, RT> > getRestriction(const Vector& position, const Vector& direction) const
{
// return Dune::Std::make_unique<C1DirectionalRestriction<Vector, Range> >(*this, position, direction);
return std::unique_ptr<C1DirectionalRestriction<Vector, Range> >(new C1DirectionalRestriction<Vector, Range>(*this, position, direction));
return Dune::Std::make_unique<C1DirectionalRestriction<Vector, Range> >(*this, position, direction);
}
protected:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment