tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: #pragma once



Am Sat, Oct 15, 2022 at 07:21:35PM +0000 schrieb Taylor R Campbell:
> How reliable/consistent is toolchain support for it?  Is it worth
> adopting or is the benefit negligible over continuing to use
> traditional #include guards?  Likely problems with adopting it?

Does it gain anything beside a tiny bit smaller? I don't think it is
faster and trading three lines of boilerplate per header file for a
non-portable construct is a worthy gain.

Joerg


Home | Main Index | Thread Index | Old Index