Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2021-10-14 01:13:31


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( "/" );

Thanks


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