Makeing my code look cleanner for others
[in c++ using g++ compiler]
I have a class with 2 enums (actually more but for example to simplify things)
Currently it looks alitle like a mess because of the enums.
Thanks in advance!
Well, as far as I know, you can't do it with G++ (MSVC maybe). What would need to be done is some sort of a forward declaration of your private enum, but forward declaring enums doesn't comply to ansi c++, and therefore doesn't work with G++. (plus, I don't know how an anonymous enum could be forward declared anyway).
You can have multiple public: and private: sections in a class. What I would do is something like this:
|All times are GMT -5. The time now is 02:09 PM.|