C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 23 Sep 2024 14:24:26 +0300
On Mon, 23 Sept 2024 at 14:22, Jiri Bobek via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> This should work the same way as include guards. Once the file is included, you don't include it second time.

Oh, right, "_the_ file"..

> Yes, utils.h may be a different file each time but that's irrelevant.

..which is multiple files for different utils.h incarnations, but yet
the hash of a file doing that include may be the same.

> Hash works 🙂

No, it doesn't. And neither does #pragma once.

Received on 2024-09-23 11:24:40