C++ Logo

sg7

Advanced search

Re: CppMeta code reflection and C code reflection

From: Robin Rowe <robin.rowe_at_[hidden]>
Date: Fri, 23 Feb 2024 08:08:10 -0800
<< I think all reflection proposals show how to implement enum to
string.The CppMeta version seems more complicated than the P2996
proposal, but I think that was only because they wanted to show off
lower level code generation capabilities. >>

Yes, enum_to_string is in P2996. Uses templates to implement, which we
don't have in C. Any proposals or ideas suggested for reflection that
can do enum_to_string yet don't involve templates? Any approach more
minimalist than P2996 or CppMeta?

Robin Rowe
Beverly Hills, California
*Chairman ISO WG21 SG14 C++ Banking and Financial Systems Subcommittee

On 2/23/2024 12:31 AM, Jonathan O'Connor wrote:
> Robin,
> I think all reflection proposals show how to implement enum to string.The CppMeta version seems more complicated than the P2996 proposal, but I think that was only because they wanted to show off lower level code generation capabilities.
>
> Regards,
> Jonathan

Received on 2024-02-23 16:08:13