[Cs3] no static for enum

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Apr 25 22:30:49 EDT 2022


CS3 students,

In the mediator example, the enum class definistions inside the class:

   enum class Task {taxiing, approaching};  Task task_;
   enum class Status {waiting, cleared};    Status status_;

Indeed do not, and cannot, be declared static as they are a type
definition and "static" which is a storage class designation does not
apply to type.

More details are, for example, here:

     https://stackoverflow.com/questions/4971436/what-does-static-enum-mean-in-c

Thanks,
-- 
Mikhail


More information about the cs3 mailing list