mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Use enum class in Enum.4 example. (#2065)
This commit is contained in:
parent
1d04d93dbe
commit
16f29fd38c
|
@ -9156,7 +9156,7 @@ Convenience of use and avoidance of errors.
|
|||
|
||||
##### Example
|
||||
|
||||
enum Day { mon, tue, wed, thu, fri, sat, sun };
|
||||
enum class Day { mon, tue, wed, thu, fri, sat, sun };
|
||||
|
||||
Day& operator++(Day& d)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user