6 Apr
2026
6 Apr
'26
10:42 a.m.
On 4 Apr 2026 21:47, Emil Dotchevski via Boost 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).
Why are the enum_lookup_range limits necessary? As far as I could tell from my brief glance at the code, you simply cut the enum value names from function signature strings, no actual lookup is involved, so why the limits? Also, since the library only deals with producing name strings for types and enum values, I think Reflecto is a bit ambitious name. I would expect more advanced features from a reflection library, e.g. the ability to iterate over enum values or struct data members.