Visual Studio is correct here by the way. According to the standard, array sizes must be constexpr in c++11 (and before const). Only c++14 will relax this a bit. That clang and gcc compiled this without any problems is actually just an extension of the standard.
Visual Studio is correct here by the way. According to the standard, array sizes must be constexpr in c++11 (and before const). Only c++14 will relax this a bit. That clang and gcc compiled this without any problems is actually just an extension of the standard.