Skip to content

Add something similar to Reflection::IndexOf<auto MemberPtr> #15

Open
@christianparpart

Description

@christianparpart

supposed this:

struct S {
    int foo;
    std::string bar;
};

static_assert(Reflection::IndexOf<&S::foo> == 0);
static_assert(Reflection::IndexOf<&S::bar> == 1);

It would be nice to get this functionality to retrieve the index of a field by symbolic name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions