Is this C++ code correct?
const size_t tabsize = 50;
int tab[tabsize];
The problem is that I've already seen numerous conflicting opinions on that matter. Even people at ##c++ IRC channel and programming forums claim radically different things.
Some people say the above code is correct.
Others argue that it is not, and that it should necessarily be like this:
constexpr size_t tabsize = 50;
int tab[tabsize];
Since I'm already confused enough by conflicting opinions of "C++ experts", could I please ask for a reasonably backed up answer? Many thanks!