Make filesystem::path work with basic_string_view (P0392R0)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 28 Oct 2016 18:48:43 +0000 (19:48 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 28 Oct 2016 18:48:43 +0000 (19:48 +0100)
commitf0414b973f9b399bd726605943fbca39dea8ef77
treeb8d8ead6210099927ae2c0ccb69e76e0c44fc424
parent47135167124c764f351caf0f0f461e3c865e58fa
Make filesystem::path work with basic_string_view (P0392R0)

* include/experimental/bits/fs_path.h (__is_path_src)
(_S_range_begin, _S_range_end): Overload to treat string_view as a
Source object.
(path::operator+=, path::compare): Overload for basic_string_view.
* testsuite/experimental/filesystem/path/construct/string_view.cc:
New test.
* testsuite/experimental/filesystem/path/construct/
string_view_cxx17.cc: New test.

From-SVN: r241658
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/experimental/filesystem/path/construct/string_view.cc [new file with mode: 0644]