Skip to content
Snippets Groups Projects

TupleVector: inherit all constructors from std::tuple

Merged Patrick Jaap requested to merge fix/tuplevector-inherit-all-constructors into master
1 file
+ 2
9
Compare changes
  • Side-by-side
  • Inline
  • 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.
@@ -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>
Loading