C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 2 Sep 2024 13:06:11 +0300
On Mon, 2 Sept 2024 at 06:24, Tiago Freire via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> Don't define what system calls are needed in the standard.
> This was always going to be platform dependent.
>
> We know for sure that comparing file paths alone would do the trick. Which doesn't even require opening files, the only thing it requires is to exist to register a hit for your #include directive.
> If you need more than that to tell 2 files apart then you can't even guarantee what the "#include" directive is doing.
>
> Is anyone going to argue that "#include" directives are unimplementable?

I continue to fail to understand these arguments along the lines of
"then #include doesn't work either". An #include
has no need to tell two files apart. Could you please explain what
you're talking about here?

Received on 2024-09-02 10:06:26