14 Oct
2021
14 Oct
'21
10:46 a.m.
On 10/14/21 4:13 AM, Vinnie Falco wrote:
On Wed, Oct 13, 2021 at 5:25 PM Andrey Semashev via Boost
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.