[PATCH] Apply resolution for LWG DR 3096

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] Apply resolution for LWG DR 3096

Jonathan Wakely-3
Add fix for "path::lexically_relative is confused by trailing slashes".

        * doc/xml/manual/intro.xml: Document LWG 3096 change.
        * src/filesystem/std-path.cc (path::lexically_relative(const path&)):
        Treat a final empty element equivalently to a final dot element.
        * testsuite/27_io/filesystem/path/generation/relative.cc: Add checks
        for the examples in the DR.

Tested x86_64-linux, committed to trunk.

patch.txt (3K) Download Attachment