Skip to content
Snippets Groups Projects
Commit d09ef2dd authored by Timo Koch's avatar Timo Koch
Browse files

Throw error when somebody wants to increment the end iterator.

parent 85285213
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,7 @@ public:
GridImp::getRealImplementation(intersection_).center_->corners())
{
// This is already the end iterator
DUNE_THROW(InvalidStateException, "Cannot increment a one past the end iterator");
return;
}
if(GridImp::getRealImplementation(intersection_).center_->facet_[GridImp::getRealImplementation(intersection_).facetIndex_]->elements_.size()==1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment