C++ question - forward declaration for enum?
Falk Hueffner
falk.hueffner@student.uni-tuebingen.de
Sat Oct 4 21:23:00 GMT 2003
Eljay Love-Jensen <eljay@adobe.com> writes:
> class X
> {
> int m;
> public:
> X(type i) : m(i) { }
> enum type { one, two, three };
> };
>
> Is there a forward declaration? Any proper C++ way to use the enum
> "type" before the full declaration of enum "type"?
No. Can't you just move the enum declaration before the declaration of
the constructor?
--
Falk
More information about the Gcc-help
mailing list