标签: c++ c++14
编译以下代码时
const kernel_t<float, 3, 3> _kernel { {1, 2, 1}, {2, 4, 2}, {1, 2, 1} };
编译器抱怨error: too many initializers for ‘std::array<std::array<float, 3>, 3>’ 编译器是gcc 8.2.1和c ++ 14。
error: too many initializers for ‘std::array<std::array<float, 3>, 3>’
gcc 8.2.1