it
class X { int x = 2; string y {"smt"}; int tab[3] = {1,2,3};
possible in the new C ++ 11 standard, as far as I know. However, none of these are allowed in Visual Studio 2012 V3 or 2013. The first gives:
error C2864: 'A::a' : only static const integral data members can be initialized within a class
second and third errors about ';' and '{'.
Does this basically mean that these functions are still not available in the MS compiler? Which compiler really supports this? I searched for class initialization answers in Visual, but did not find anything specific about the latest versions.
Thanks in advance.
source share