please see the comments in code, can someone tell me why it works this way and fails the other way. i was trying to access the elements of the enum nested inside Logger class...
Code:class Logger { public: enum Level { Debug, Warn, Error }; }; int main() { cout << Logger::Debug << endl; // Works. cout << Logger::Level::Debug << endl; // Fails! return 0; }