Provide filesystem::path overloads for file streams (LWG 2676, partial)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 27 Oct 2017 12:39:01 +0000 (13:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 27 Oct 2017 12:39:01 +0000 (13:39 +0100)
commitd49f254a6cf31361212ee5633697a8384419f584
treeb59abf7a4cc6ac4a45212d684a59e41792a015c8
parent9333319b5221fb476826ba96906eed382de9937e
Provide filesystem::path overloads for file streams (LWG 2676, partial)

* include/std/fstream (basic_filebuf::_If_path): New SFINAE helper.
(basic_filebuf::open<Path>(const Path&, const ios_base::openmode&))
(basic_ifstream<Path>(const Path&, const ios_base::openmode&))
(basic_ifstream::open<Path>(const Path&, const ios_base::openmode&))
(basic_ofstream<Path>(const Path&, const ios_base::openmode&))
(basic_ofstream::open<Path>(const Path&, const ios_base::openmode&))
(basic_fstream<Path>(const Path&, const ios_base::openmode&))
(basic_fstream::open<Path>(const Path&, const ios_base::openmode&)):
New constructors and member functions.
* testsuite/27_io/basic_filebuf/open/char/path.cc: New test.
* testsuite/27_io/basic_fstream/cons/char/path.cc: New test.
* testsuite/27_io/basic_fstream/open/char/path.cc: New test.
* testsuite/27_io/basic_ifstream/cons/char/path.cc: New test.
* testsuite/27_io/basic_ifstream/open/char/path.cc: New test.
* testsuite/27_io/basic_ofstream/cons/char/path.cc: New test.
* testsuite/27_io/basic_ofstream/open/char/path.cc: New test.

From-SVN: r254148
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/fstream
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/path.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/path.cc [new file with mode: 0644]