Re: (Boost) Reflecto

Viktor Sehr via Boost <[email protected]>
Newsgroups gmane.comp.lib.boost.devel
Message-ID <CAByYEzVcWVSa08R3XoCuLnu69gqTekgWHayeeH+U13z686_Yuw@mail.gmail.com>
Hi Emil,
If you expand this library (which I suppose is based upon the ideas in
magic-enum), I would suggest adding the functionality in "light enum"
available at https://github.com/gloinart/light_enum
(note, made by me).
Light enum has the same features as magic enum, with the difference that
the enums are "registered" in .cpp files before usage. This way, the
compile time overhead of magic enum is avoided.

As a bonus, you can also introspect an enum even if you only have a forward
declaration available.

Best
/Viktor


On Sun, Apr 5, 2026 at 1:48 AM Emil Dotchevski via Boost <
[email protected]> wrote:

> I wrote a small constexpr type/enum reflection library which I think may be
> a good addition to Boost. It needs C++17, although it relies on
> implementation-specific support (works on gcc, clang and msvc).
>
> https://github.com/zajo/reflecto
> _______________________________________________
> Boost mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
> Archived at:
> https://lists.boost.org/archives/list/[email protected]/message/NLGU2ADVJF7CW45DRJJSERBPNF2LBOLB/
>
_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/2VH4BYFP2Y2EN2QTOAZXIMANPFPCPX3Z/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.