From fd07a5a1e332c520571d466441361c8b72c01247 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org>
Date: Wed, 23 Sep 2015 11:26:51 +0200
Subject: [PATCH] Add constexpr to constructor of FieldVector<K,1>

Otherwise FieldVector<K,1> is not literal and its size()
method can never be used as constexpr.
---
 dune/common/fvector.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/common/fvector.hh b/dune/common/fvector.hh
index 2c699549d..48807360f 100644
--- a/dune/common/fvector.hh
+++ b/dune/common/fvector.hh
@@ -224,7 +224,7 @@ namespace Dune {
     //===== construction
 
     /** \brief Default constructor */
-    FieldVector ()
+    DUNE_CONSTEXPR FieldVector ()
       : _data()
     {}
 
-- 
GitLab