|
|
For convenience in naming days of the week and months of the year, two enumeration types are defined. Since these definitions are nested inside class Time, you must refer to both the typenames and the enumeration constants using qualification:
Weekday w; // error Month m; // error Time t(1988,january,1); // error
Time::Weekday w; // OK Time::Month m; // OK Time t(1988,Time::january,1); // OK