From 74a4964d46af60f37e515b09efa18145434481bb Mon Sep 17 00:00:00 2001
From: Lasse Hinrichsen <lh1887@mi.fu-berlin.de>
Date: Thu, 6 Dec 2018 17:20:00 +0100
Subject: [PATCH] Allow non-const reference to BlockVectorWindow's size

---
 dune/istl/bvector.hh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dune/istl/bvector.hh b/dune/istl/bvector.hh
index 9e2bc6cf2..3e8653ec4 100644
--- a/dune/istl/bvector.hh
+++ b/dune/istl/bvector.hh
@@ -872,7 +872,12 @@ namespace Imp {
     }
 
     //! get size
-    size_type getsize () const
+    const size_type& getsize () const
+    {
+      return this->n;
+    }
+
+    size_type& getsize()
     {
       return this->n;
     }
-- 
GitLab