Date: Tue, 24 Jun 2025 15:48:46 +0200
On Tue, Jun 24, 2025 at 3:30 PM Simon Schröder via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
> On Tue, Jun 24, 2025 at 3:01 PM Peter Bindels via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>> and ideally output documentation with C++26 reflection.
>>
>
> I also thought about reflection to get documentation from (user-defined)
> attributes. Can we already write to files in compile time code?
>
You can create code at compile time, that then outputs documentation when
run. It's a minor difference but IMO not impactful - and arguably better.
You can reflect on structs used in a web server and output Swagger data for
them, and be guaranteed that your website and the swagger "file" in it are
the same.
std-proposals_at_[hidden]> wrote:
>
> On Tue, Jun 24, 2025 at 3:01 PM Peter Bindels via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>> and ideally output documentation with C++26 reflection.
>>
>
> I also thought about reflection to get documentation from (user-defined)
> attributes. Can we already write to files in compile time code?
>
You can create code at compile time, that then outputs documentation when
run. It's a minor difference but IMO not impactful - and arguably better.
You can reflect on structs used in a web server and output Swagger data for
them, and be guaranteed that your website and the swagger "file" in it are
the same.
Received on 2025-06-24 13:48:58