C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Revising #pragma once

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 01 Sep 2024 10:44:33 -0700
On Sunday 1 September 2024 10:24:07 GMT-7 Tiago Freire wrote:
> Hence you don't specify it. If stat'ing or <insert function name here>
> returns the same information for what are different files, then <insert
> function name here> is not the way to distinguish different files. Submit a
> bug report and fix that implementation for that platform.

True and it should be done, but it doesn't change the fact that when it
happens, it happens to the user.

Not because the user made a choice in a bleeding-edge or out-of-support
compiler, which is the usual reason for compiler bugs, but because of where
they put the files.

PS: the libc++ implementation uses GetFileInformationByHandleEx... but not for
st_dev and st_ino for its internal stat() implementation.

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

Received on 2024-09-01 17:44:38