Re: (Boost) Reflecto

Antony Polukhin via Boost <[email protected]>
Newsgroups gmane.comp.lib.boost.devel
Message-ID <CAKqmYPZijaQn4rWnxBS-Wgwu1aCqhgURDX7vdzbDUQsEFB3TvA@mail.gmail.com>
сб, 4 апр. 2026 г. в 21:48, Emil Dotchevski via Boost <[email protected]>:
>
> 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

The type name reflection functionality already exists in Boost in
TypeIndex library
https://www.boost.org/doc/libs/1_91_0_beta1/doc/html/doxygen/boost_typeindex_header_reference/classboost_1_1typeindex_1_1ctti__type__index.html
:

```
static_assert(
    boost::typeindex::ctti_type_index:::type_id<int>().name()
    == std::string_view{"int"}
);
```



-- 
Best regards,
Antony Polukhin
_______________________________________________
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/KCUDZZMYF3FRGLWQFK2FYITGAGYF2R3R/
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.