I have the following (not compilable) code:
template< size_t N > void foo( std::array ) { // Code, where \"N\" is used. } int main() { f
Thanks to core issue 1591, you can use
template void foo( int const (&arr)[N] ) { // Code, where "N" is used. } foo({1, 2, 3});