May 11, 2012 at 10:49pm UTC
Hmm....
Just realize that int dimensions[A] { 0 };
sets to 0 all A elements.
This is what I want.
Thanks.
May 11, 2012 at 10:56pm UTC
chameleon wrote:int dimensions[A] { 0 };
chameleon wrote:"This is what I want."
Only constant and static integral data members can be initialised inside the class.
Wazzak
Last edited on May 11, 2012 at 10:57pm UTC
May 12, 2012 at 1:09pm UTC
I don't put a 'static' or 'const' in front of int dimensions[A] { 0 };
and it works.
It is different from specification?
May 12, 2012 at 10:16pm UTC
What compiler are you using? Because both MinGW 4.4.1 & Microsoft's Visual C++ 2010 compilers do not accept your code, irrespective of storage & constant qualifiers.
Wazzak