Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-14 08:48:39

David Abrahams wrote:

> > Why, when merging "foo/bar" with "baz" we look at past-the-end symbol of
> > "foo/bar" in hope that the right separator will be there?
> Because it's simple and it gives the right result most of the time.
> Can you propose a better rule?

No. But comment should be better... see bellow.

> > I believe that relies on the assumption that pointers in _pathname
> > struct all refer to original filename
> Not exactly. It just is only attempting to handle those cases where
> the user will be completely astonished that a slash direction has
> changed.

I'll rephrase: a person who looks at path_build as it is now has no idea how
the path-the end symbol can be slash. A comment that in most cases the
directory comes from path_parse, which leaves the original path separator
as past-the-end symbol, would help to understand your change.

- Volodya


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at