[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 10:08 PM 8/25/2003, David Abrahams wrote: > >David Abrahams <[EMAIL PROTECTED]> writes: > > > >> > What about: > >> > > >> > assert( p.branch_path().empty() ); > >> > > >> > Isn't that closer to what you are trying to express? > >> > >> I

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 10:08 PM 8/25/2003, David Abrahams wrote: >David Abrahams <[EMAIL PROTECTED]> writes: > >> > What about: >> > >> > assert( p.branch_path().empty() ); >> > >> > Isn't that closer to what you are trying to express? >> >> I guess so. I didn't see branch_path(). > >BTW, it would feel much more

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 09:48 PM 8/25/2003, David Abrahams wrote: >"Rainer Deyke" <[EMAIL PROTECTED]> writes: > >> It is my understanding that paths are implemented as >> std::vector or something similar, where the individual >> strings can contain slashes if the underlying filesystem allows it. >> It would be a shame

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > > What about: > > > > assert( p.branch_path().empty() ); > > > > Isn't that closer to what you are trying to express? > > I guess so. I didn't see branch_path(). BTW, it would feel much more natural to me if it were path root() const;

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 03:55 PM 8/21/2003, David Abrahams wrote: > > >Beman Dawes <[EMAIL PROTECTED]> writes: > > > >> At 08:31 PM 8/19/2003, David Abrahams wrote: > >> > > >> >It surprised me a bit that leaf returns a string instead of a path. > >> > >> The rule isn

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
"Rainer Deyke" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Rainer Deyke" <[EMAIL PROTECTED]> writes: >> >>> David Abrahams wrote: A single component of a path is still a path, and it shouldn't devolve into a string. >>> >>> I disagree. While a path with just one component ca

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 03:55 PM 8/21/2003, David Abrahams wrote: >Beman Dawes <[EMAIL PROTECTED]> writes: > >> At 08:31 PM 8/19/2003, David Abrahams wrote: >> > >> >It surprised me a bit that leaf returns a string instead of a path. >> >> The rule isn't entirely obvious. If a decomposition function can >> possibly