Hello,
I need to write something like this below but this doens't compile:
Qt Code:
  1. class D {
  2. public:
  3. D ( P::Type t1, P::Type t2) { }
  4. };
  5.  
  6. class P {
  7. public:
  8. static const enum Type { typea, typeb, typec };
  9. D d1;
  10. };
To copy to clipboard, switch view to plain text mode 
I think D doesn't know Type because it's declared before BUT I'd like keep Type inside some class...how change, please?