C++ Logo


Advanced search

Re: [std-proposals] Chimeric Pointer (template param id's)

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 28 Nov 2022 11:26:48 +0000
On Mon, Nov 28, 2022 at 9:50 AM Lénárd Szolnoki via Std-Proposals
<std-proposals_at_[hidden]> wrote:
> I think some of the compile time reflection proposals cover this. I don't think you need
> anything special about the template parameter. It can be a structural type that can be
> initialised from a string literal. The magic is in looking up a member from that compile-time string.

Would it not just be a simple copy-pasting of text? I mean if the compiler sees:


Then it just has to take the text of the body of "Function" and
copy-past "size" where needed.

Received on 2022-11-28 11:27:01