I would argue the real solution in that case would be to use a template, allowing the size to be a template parameter.
Of course, it would be better std::array was used in the first place (perhaps...