|
Boost : |
Subject: Re: [boost] [filesystem] Request for comments on proposedrelative()function
From: Peter Dimov (lists_at_[hidden])
Date: 2014-05-16 10:38:05
Yakov Galka wrote:
> On Fri, May 16, 2014 at 4:49 PM, Yakov Galka <ybungalobill_at_[hidden]>
> wrote:
>
> > ...
> > Definition 2:
> > "c:" / x / "c:" = "c:" / x
> > "a:" / x / "c:" = "c:" for a != c and no element of x is a
> > drive.
> > This is similar to what SetCurrentDirectory does, and implies that c:a/b
> > isn't absolute.
> >
>
> Actually the problem of this definition is that it cannot be associative
> given the current Windows path syntax.
To support c:a, we need either to distinguish between "c:" and "c:/" as path
elements, or posit that c:/ consists of { "c:", "/" }. The openat-based
definition then becomes associative (using either), if I'm not mistaken.
Although I very well could be, because did I mention the word madness in
relation to all this? I forget.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk