Skip to content

Force use of enumerations for .type_choice() arguments #3283

@Lestropie

Description

@Lestropie

Extension of #3275.

Make maximal use of robust enumeration support introduced in #3275 by forcing all uses of MR::Argument::type_choice() to use an explicit enumeration rather than a vector of strings. The latter is vulnerable to bugs caused by code wtiching via integer values and/or loss of correspondence between enumerations and vectors-of-strings. Deletion of the type_choice(std::vector<std::string>) function will expose the remaining uses to be refactored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions