Commit e8712790 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

correct bug of overloaded by temporary

parent 1ce74eb2
Pipeline #4593 failed with stage
in 10 minutes and 25 seconds
......@@ -245,7 +245,11 @@ namespace Dune
return LocalFunction{gridCreator};
}
friend LocalFunction localFunction (LagrangeGridCreator&& gridCreator) = delete;
friend LocalFunction localFunction (LagrangeGridCreator&& gridCreator)
{
DUNE_THROW(Dune::Exception, "Cannot pass temporary LagrangeGridCreator to localFunction(). Pass an lvalue-reference instead.");
return LocalFunction{gridCreator};
}
struct EntitySet
{
......
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