Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide reflection data as compile time lists rather than array #196

Open
Julien-Blanc-tgcm opened this issue Jun 29, 2022 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@Julien-Blanc-tgcm
Copy link

Working with arrays in a compile time context is not the easiest thing. It is much more convenient to work with integer_list. Boost describe ( https://www.boost.org/doc/libs/1_79_0/libs/describe/doc/html/describe.html ) provides also reflection on enums, but uses a slightly different structure:

«

A descriptor list is a type of the form L<D1, D2, …​, Dn>, where L is of the form template<class…​ T> struct L {}; and Di is of the form

struct Di
{
static constexpr E value;
static constexpr char const* name;
};

»

It would be nice if we could also get this, in addition to what is currently provided, with magic_enum.

@Neargye
Copy link
Owner

Neargye commented Jun 29, 2022

Oh, I haven't seen this library in boost yet, I'll take a look at it.

@Neargye Neargye added the enhancement New feature or request label Jun 29, 2022
@Neargye Neargye added help wanted Extra attention is needed and removed enhancement New feature or request labels May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants