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