C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Mon, 2 Sep 2024 19:14:47 +0300
On 9/2/24 13:34, Tiago Freire via Std-Proposals wrote:
>> An #include has no need to tell two files apart. Could you please
> explain what you're talking about here?
>
> It needs to find a file, not just any file, it needs to find a specific
> file.

No, *you* need to include a specific file. The compiler doesn't care
whether what it finds is what you wanted. As long as it finds *a* file
according to its implementation-defined rules, its lookup job is done.

Received on 2024-09-02 16:14:51