I'm a little confused because both a default parameter template and a variadic template parameter have to be the last parameter of a template. So what is the good official syntax for my function ?
template<typename T, class T2 = double, unsigned int... TDIM> myFunction(/* SOMETHING */)
or
template<typename T, unsigned int... TDIM, class T2 = double> myFunction(/* SOMETHING */)