No, before C ++ 11 you only need to do this by default - initialize each element of the array:
: _mydata()
The way you wrote it will not work.
With C ++ 11, it is recommended to use a uniform initialization syntax:
: _mydata { }
And in this way you can put things in an array that you could not have before:
: _mydata { 1, 2, 3 }
Seth carnegie
source share