ORNL / ReSolve

Library of GPU-resident linear solvers
Other
58 stars 2 forks source link

convert unscoped enums to scoped enums #191

Closed stonecoldhughes closed 1 month ago

stonecoldhughes commented 2 months ago

Enumerations in this codebase appear to be unscoped; thus, they are "weakly typed". Scoped enumerations, in contrast, are "strongly typed". This may or may not be desired depending on how these enumerations are used.

scoped/unscoped enum reference: https://en.cppreference.com/w/cpp/language/enum

A brief treatment of strong vs weak typing.

https://en.wikipedia.org/wiki/Strong_and_weak_typing

pelesh commented 1 month ago

Closing for now. If there is a specific action recommended here we can reopen.