I am trying to do something in this direction using the GCC 4.7 snapshot:
template <int n, int... xs> struct foo { static const int value = 0; };
The error is strange, because in this case sizeof works instead of sizeof .... Both seem so that they can be easily calculated at compile time.
Is the compiler correct that I cannot use sizeof... in template arguments for specialization?
source share