Re: [Doxygen-users] Forward declaration of enums
Brought to you by:
dimitri
From: <br...@sh...> - 2002-01-18 01:33:55
|
Quoting Stephane Routelous <ste...@sy...>: > Hi, > > here is my problem : > > I'm using forward declaration of enums and classes in my classes. > With the enum, I've got a warning : > E:/tmp/dox/class.h:8 Warning: Member MyEnum of file class.h is not > documented. > But I have no warnings for forward declarations of classes > Is that normal ? > Is that a bug ? Yes... In your code, and possibly your compiler. :-) In general, you don't want to forward-declare enums. I'm not sure off the top of my head whether the syntax is even valid; even if it is, you shouldn't use it. C++ allows the size of an enumerant to depend on the range of values the enumeration must be able to hold. To derive this information, the compiler must be able to see the definition of the enumeration in each translation unit where the enumeration is used. Braden |