[ROOT] static const char

From: Salvatore Rappoccio (rappoccio@heplcdf2.harvard.edu)
Date: Mon Jun 07 2004 - 01:27:20 MEST


Hi, All,

I am wondering why CINT cannot handle static const char data members. The 
following code compiles fine if I use a compiled binary with KAI, but does 
not compile under CINT:

class X {

public:

  enum X_t { A=0, B, C, D};

  static const char * names[C];


};

const char * X::names[] = {
 "A", "B", "C"
};


How should I do this in CINT? I am using root 3.05/04 and CINT 5.15.85.

Thanks,
Sal Rappoccio



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET