From 8d53f4c93ddd322f7c09ee20ef99ce89218a824a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org>
Date: Wed, 30 Sep 2015 18:24:54 +0200
Subject: [PATCH] Make ReservedVector::max_size() and ::capacity() constexpr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

(cherry picked from commit 49879f16e42aa662d256a13e2762a1366e3624ac)
Signed-off-by: Steffen Müthing <muething@dune-project.org>
---
 dune/common/reservedvector.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/common/reservedvector.hh b/dune/common/reservedvector.hh
index 2ec2b2b0a..c8c6a3153 100644
--- a/dune/common/reservedvector.hh
+++ b/dune/common/reservedvector.hh
@@ -182,13 +182,13 @@ namespace Dune
     }
 
     //! Returns current capacity (allocated memory) of the vector.
-    static size_type capacity()
+    static DUNE_CONSTEXPR size_type capacity()
     {
       return n;
     }
 
     //! Returns the maximum length of the vector.
-    static size_type max_size()
+    static DUNE_CONSTEXPR size_type max_size()
     {
       return n;
     }
-- 
GitLab