C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 2 Sep 2024 15:16:19 +0300
On Mon, 2 Sept 2024 at 15:11, Tiago Freire <tmiguelf_at_[hidden]> wrote:
>
> > The (main) problem has never been two distinct files having the same path. The problem is one and the same file having different paths (and inodes, etc.).
> It fails to be recognized as the Same File in multiple places, attempts to redefine non-inline entities, and builds break.
>
> Great, don't do that then!

Yeah, we already don't do that. We don't use a facility prone to these
problems, and neither should anyone else.

Received on 2024-09-02 12:16:53