Skip to content

max_v should be moved outside of detail #462

Description

@Ambeco

max_v is very useful, but seems "private" inside of the detail namespace. IMO, it should be moved out.
Also, it's enum_subtype S template parameter should default to = subtype_v<E>.

It is less clear if min_v is equally value, but for symmetry, should probably also be made "public". Alternatively, expose a range_v<E> that returns the range min_v to max_v.

These are handy for helper code that map enum values to other things, such as in https://stackoverflow.com/a/79981587/845092

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions