Skip to content
Snippets Groups Projects
Commit 64a9ab73 authored by Patrick Jaap's avatar Patrick Jaap
Browse files

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.
parent 5088e04d
Branches
No related tags found
1 merge request!65TupleVector: inherit all constructors from std::tuple
Pipeline #44823 failed
...@@ -22,15 +22,8 @@ namespace Solvers ...@@ -22,15 +22,8 @@ namespace Solvers
public: public:
/** \brief Construct from a set of arguments */ // inherit all constructors from std::tuple
template<class... TT> using Base::Base;
constexpr TupleVector(TT&&... tt) :
Base(std::forward<TT>(tt)...)
{}
/** \brief Default constructor */
constexpr TupleVector()
{}
/** \brief Const access to the tuple elements */ /** \brief Const access to the tuple elements */
template<std::size_t i> template<std::size_t i>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment