const int32_t kernel_sizes[1] = {8};
void Create(int id)
{
float *kernel = new float[1][1][kernel_sizes[id]];
}
Create(0);
When I try to create this array, there is a error. The error is:
Array size is not a constant expression implicit use of 'this' pointer is only allowed within the evaluation of a call to a 'constexpr' member function
. What is the reason for this error and how to solve this error?