From 31ebc889f8ddf2473273cbfa40d13ff058eaf958 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Wed, 25 Aug 2021 11:00:50 +0200
Subject: [PATCH] [geometryentityset] Return reference since this is possible
 here

---
 dumux/geometry/geometricentityset.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dumux/geometry/geometricentityset.hh b/dumux/geometry/geometricentityset.hh
index 993c16209d..69f7fe21a2 100644
--- a/dumux/geometry/geometricentityset.hh
+++ b/dumux/geometry/geometricentityset.hh
@@ -226,7 +226,7 @@ public:
     /*!
      * \brief get an entity from an index
      */
-    Entity entity(std::size_t index) const
+    const Entity& entity(std::size_t index) const
     { assert(index < entities_.size()); return entities_[index]; }
 
 private:
-- 
GitLab