Strange error C2131: expression did not evaluate to a constant in VC 2015
It’s possible to use static const int member as an array size, but you’ll have to define this member within class in your .hpp file like so: This will work. P.S. About the logic behind it, I believe compiler wants to know size of the array member as soon as it encounters class declaration. If you leave static const … Read more