From 64a9ab73208d4bd15bf0d0716c5a8a8be9c5f1e3 Mon Sep 17 00:00:00 2001
From: Patrick Jaap <patrick.jaap@tu-dresden.de>
Date: Tue, 4 Jan 2022 14:47:40 +0100
Subject: [PATCH] TupleVector: inherit all constructors from std::tuple

The previous implementation caused unwanted passes of std::is_assignable with bool.
Furthermore, the previous implementation provided a variadic constructor without any restrictions causing hard to track compiler errors in the std::forward part.
---
 dune/solvers/common/tuplevector.hh | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/dune/solvers/common/tuplevector.hh b/dune/solvers/common/tuplevector.hh
index 026d9a82..01da296d 100644
--- a/dune/solvers/common/tuplevector.hh
+++ b/dune/solvers/common/tuplevector.hh
@@ -22,15 +22,8 @@ namespace Solvers
 
   public:
 
-    /** \brief Construct from a set of arguments */
-    template<class... TT>
-    constexpr TupleVector(TT&&... tt) :
-      Base(std::forward<TT>(tt)...)
-    {}
-
-    /** \brief Default constructor */
-    constexpr TupleVector()
-    {}
+    // inherit all constructors from std::tuple
+    using Base::Base;
 
     /** \brief Const access to the tuple elements */
     template<std::size_t i>
-- 
GitLab