From a7482de9e13feabe844ca060eed5ec7ebe755c78 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <Ansgar.Burchardt@tu-dresden.de>
Date: Fri, 16 Oct 2015 18:23:56 +0200
Subject: [PATCH] Revert to old-style for-loop.

The containsInsideSubentity() method is defined on the iterator. Using a
range-based for-loop prevents us from calling it.
---
 dune/fufem/functiontools/boundarydofs.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/fufem/functiontools/boundarydofs.hh b/dune/fufem/functiontools/boundarydofs.hh
index 6a6ef881..65dcfb6d 100644
--- a/dune/fufem/functiontools/boundarydofs.hh
+++ b/dune/fufem/functiontools/boundarydofs.hh
@@ -31,9 +31,9 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
     boundaryDofs.unsetAll();
 
 
-    for (const auto& it : boundaryPatch) {
+    for (auto it = boundaryPatch.begin(); it != boundaryPatch.end(); ++it) {
 
-        const auto& inside = it.inside();
+        const auto& inside = it->inside();
         const auto& localCoefficients = basis.getLocalFiniteElement(inside).localCoefficients();
 
         for (size_t i=0; i<localCoefficients.size(); i++) {
-- 
GitLab