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
The bool_pack trick again.
bool_pack
template struct bool_pack; template using all_true = std::is_same, bool_pack>;
Then
template using are_all_convertible = all_true::value...>;
and finally
template::value>::type> foo(T... t){ /* code here */}