$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-05-07 01:16:04
Beman Dawes wrote:
> >However, I've a question: if is always true that ph.leaf().empty() ==
> >ph.empty.
>
> Yes, that's both intuitively correct and follows from the specification
> path()'s return.
I'm not sure how it follows from specifications, actually, but it's not big
issue. What's important that assert that I had was equvivalent to
assert(!ph.empty())
and that check is really of little use.
> > IOW, is it ever possible to have empty element in the sequence of
> >strings that compose the path?
>
> No, not in a path which follows the portable grammar. It is a little less
> clear for a native path on a system other than POSIX or Windows, but I
> don't think we should agonize over that corner case.
OK.
- Volodya