Initializing table in a class

Hi,
I create a class

class tabclass
{
 private:
  static const unsigned n=48;

 public:
  double tab[n];
  tabclass();
  ClassDef(tabclass,1);
}

I wonder if there is a way in ROOT to initialize each element of tab[n] by zero. I know that standard c++ draft doesn’t allow to initialize table defined in class (it should be done in constructor e.g. in loop).

However outside class one can do

double tab[n]={0};

or even

double tab[n]=0;

to initialize each element by zero.

Maybe there is some easy way to do similar thing inside class in the ROOT environment?

double tab[n]=0; I do not believe this is a valid C++ statement.

double tab[n]={0}; As far as I know this only initialize the very first element (aka tab[0]).

For a data member, the simpliest in indeed to have a loop in the constructor.

Cheers,
Philippe.