C++ Logo


Advanced search

Re: :path appenders have inconsistent behavior for UNC paths between OSes

From: Hans Åberg <haberg-1_at_[hidden]>
Date: Fri, 5 Nov 2021 14:42:43 +0100
> On 5 Nov 2021, at 10:42, Andrey Semashev via Std-Discussion <std-discussion_at_[hidden]> wrote:
> The operator is called "append operation", so to me it is very much
> intended as a concatenation. I do not see where the spec suggests it
> should behave as filesystem navigation.

The intent is probably to behave as when opening a file of a program argument: If the second argument is an absolute file, then the initial path should be discarded. Then, as "append" is already used in C++, perhaps they chose that over a new one.

Received on 2021-11-05 08:42:50