C++ Logo

sg15

Advanced search

Re: [isocpp-sg15] [P2758] Emitting messages at compile time

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 23 Oct 2024 12:54:31 +0300
On Wed, 23 Oct 2024 at 12:01, Jonathan Wakely via SG15
<sg15_at_[hidden]> wrote:
> My use case for constexpr_print is for "interactive" development during compile-edit-debug cycles. You add some prints, but then take them out again once you've understood how the code is compiling. So IMHO it really doesn't matter how that output is displayed. It could even go to a separate file.

Thanks, there's the answer to my pondering how the compiler could
control the output of a constexpr_print.

c++ -fconstexpr-print-output-file=-
c++ -fconstexpr-print-output-file=myprintzlog.txt

Received on 2024-10-23 09:54:45