[OCLUG-devel] Where to put enum
Stephen Crane
scrane at cornerkitchenpeddler.com
Fri Jun 4 20:36:01 PDT 2004
Hi all,
I have a slight difficulty. I am putting my class declarations in classes.h
(is this correct?) I have an enum that I use in one of my classes:
Position GetAdjCell (dir direction) const; //where dir is an enum
Now when I #include the classes.h file gcc throws a fit since it doesn't know
what enum means (#include is processed by the preprocessor). Would it be
correct for me to put the enum at the top of my classes.h? What should go in
my .h file?
Thanks,
Stephen
More information about the OCLUG-devel
mailing list