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
I think the simpler would be to use std::initializer_list:
std::initializer_list
foo(std::initializer_list args) { // Your stuff. }
instead of variadic template. It may require to use {} instead of/ in addition to ()
{}
()