Since there is a restriction on allowed non-type variadic templates, I am trying to write a function taking an arbitrary number of doubles using enable_if. In essen
enable_if
You could use fold expression in c++17 to do the same thing as other answers posted here but without the hassle of creating templates.
#include template ), void >::type > constexpr auto foo(T...) noexcept { // your code }