Skip to content
  • Alessandro Di Federico's avatar
    ee2ab297
    Reorganize enums in namespaces with functions · ee2ab297
    Alessandro Di Federico authored
    `enum`s throw their entries into the parent scope. `enum class` can work
    around this issue, however, `enum class` cannot have methods. Since we
    often need to have `getName` and `fromName` functions for the enums, we
    now create a namespace for each enum that contain a number of helper
    functions.
    ee2ab297
    Reorganize enums in namespaces with functions
    Alessandro Di Federico authored
    `enum`s throw their entries into the parent scope. `enum class` can work
    around this issue, however, `enum class` cannot have methods. Since we
    often need to have `getName` and `fromName` functions for the enums, we
    now create a namespace for each enum that contain a number of helper
    functions.
Loading