Skip to content

Make NodeState into an enum class - #18

Open
r-barnes wants to merge 1 commit into
adbuerger:mainfrom
r-barnes:richard/enum_class
Open

Make NodeState into an enum class#18
r-barnes wants to merge 1 commit into
adbuerger:mainfrom
r-barnes:richard/enum_class

Conversation

@r-barnes

Copy link
Copy Markdown

enum classes are safer than enums because a standard enum is interpreted as pure integer and can be mixed with other integers and enums. Enum classes restrict comparisons to those which take place within the same enum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant