nested enum and rootcint

From: Andy Salnikov (AASalnikov@lbl.gov)
Date: Wed Aug 04 1999 - 20:43:17 MEST


  Hi,

  another problem which I'm not able to solve myself. An example is a
simple class:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// AClass.hh

class AClass {
public:
  enum Enum {
    a = 1,
    b = 2
  } ;

private:
  static const Enum first_ ;
} ;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Running rootcint on it gives me a message I cannot understand:

salnikov@percheron [266] rootcint -f AClassDict.cc -c AClass.h
Note: operator new() masked 1c
Note: operator delete() masked 1c
Error: No symbol AClass::first_ in current scope  FILE: LINE:0
Error loading headers...

I tried whatever #pragmas I could imagine only - no difference at all.
The main problem seems to be with the const-ness of the field
declaration, it works OK when "first_" is non-const. Do I have any
chance to compile it as it is, without removing const?

  Cheers,
  Andy.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET