Skip to content
Snippets Groups Projects
Commit 108f29c6 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Simplify the constructor sfinae constraint

parent afed8a0c
No related branches found
No related tags found
No related merge requests found
Pipeline #73562 waiting for manual action
......@@ -35,13 +35,6 @@ class TupleVector : public std::tuple<T...>
{
using Base = std::tuple<T...>;
template<class... TT>
using TupleConstructorDetector = decltype(Base(std::declval<TT&&>()...));
template<class... TT>
using hasTupleConstructor = Dune::Std::is_detected<TupleConstructorDetector, TT...>;
public:
/** \brief Construct from a set of arguments
......@@ -51,7 +44,7 @@ public:
* list.
*/
template<class... TT,
std::enable_if_t<hasTupleConstructor<TT...>::value, int> = 0>
decltype(Base(std::declval<TT&&>()...), bool{}) = true>
constexpr TupleVector(TT&&... tt) :
Base(std::forward<TT>(tt)...)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment