I'm trying to get the following code to compile with Visual Studio 2015. Unfortunately, the code generates a compilation error: C2099 - initializer is not a constant.
Is there any way to get the code to compile correctly (without using temporary variables) while using a Visual Studio compiler?Code:static const int *const list[] = {(const int *const[]){1, 2}, (const int *const[]){1, 2, 3, 4}};