std::array takes two template parameters:
std::array
typename T // the element type size_t N // the size of the array
I want to define a
The N needs to be a static value. You can, e.g., make a template argument:
N
template void f(std::array x) { ... }
In your example, I would still pass the argument by reference, though:
template void f(std::array const& x) { ... }