Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2021-10-14 10:46:50


On 10/14/21 4:13 AM, Vinnie Falco wrote:
> On Wed, Oct 13, 2021 at 5:25 PM Andrey Semashev via Boost
> <boost_at_[hidden]> wrote:
>> { "/", "my", "download", "folder", "" }
>> ...
>> { "/", "path", "to", "file.txt" }
>
> These are not really great because then elements are no longer
> homogeneous. That is, "/" is allowed in the front element but not the
> others. So
>
> u.segments().insert( u.segments().begin(), "/" );
>
> is okay, but these are not:
>
> u.segments().insert( u.segments().begin(), "home" );
>
> u.segments().push_back( "/" );

As I said, you're probably fine omitting the root directory.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk