Apply resolution for LWG DR 3096
authorJonathan Wakely <jwakely@redhat.com>
Wed, 28 Nov 2018 15:36:56 +0000 (15:36 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 28 Nov 2018 15:36:56 +0000 (15:36 +0000)
commitbd6ccc290a624a54f779054205cbfabb4e33a0aa
tree711247549173e2042ffb21ff6a4bc11eeb148afb
parent24d9b090fb4b9a260fedb4489392ebd509e93202
Apply resolution for LWG DR 3096

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.

From-SVN: r266566
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/src/filesystem/std-path.cc
libstdc++-v3/testsuite/27_io/filesystem/path/generation/relative.cc