Skip to content

Add enum parsing #292

@vabold

Description

@vabold

Currently, if we need to parse an enum, we need to do (e.g. u32):

static_cast<eExample>(parse<u32>(static_cast<u32>(example_instance)));

We can instead acknowledge that enums' underlying types are all integral, and extend the ParseableType concept to also include std::is_enum<T>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Priority: TrivialengineCode involving engine (C++)qualityCode quality improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions