C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 23 Sep 2024 14:42:11 -0700
On Monday 23 September 2024 13:32:12 GMT-7 Frederick Virchanza Gotham via Std-
Proposals wrote:
> Maybe the pragma should take one parameter, a 128-bit hex number as follows:
>
> #pragma once 12345678123456781234567812345678

Any modification of existing practice is also a no-go. That's also why #once
(instead of #pragma once) has not gained traction.

If you have to create an identifier, you may as well use include guards, which
do require such an identifier.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-09-23 21:42:16