PR libstdc++/83025 fix constraints for path overloads in <fstream>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 Nov 2017 14:07:58 +0000 (14:07 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 17 Nov 2017 14:07:58 +0000 (14:07 +0000)
commit96e0367ead5d8dcac3bec2865582e76e2fbab190
tree7206a6f455f377e8e51d9d7466c82d36a3e08a50
parent610f66a3d14e56dee60cd542579ffbf14f803d80
PR libstdc++/83025 fix constraints for path overloads in <fstream>

PR libstdc++/83025
* include/std/fstream (basic_filebuf::_If_path): Move to
namespace-scope and rename to _If_fs_path.
(basic_filebuf::open): Use new name.
(basic_ifstream(_Path, ios::openmode))
(basic_ifstream::open(_Path, ios::openmode))
(basic_ofstream(_Path, ios::openmode))
(basic_ofstream::open(_Path, ios::openmode))
(basic_fstream(_Path, ios::openmode))
(basic_fstream::open(_Path, ios::openmode)): Use _If_fs_path.
* testsuite/27_io/basic_filebuf/open/char/path.cc: Test with filename
as non-const char*.
* testsuite/27_io/basic_fstream/cons/char/path.cc: Likewise.
* testsuite/27_io/basic_fstream/open/char/path.cc: Likewise.
* testsuite/27_io/basic_ifstream/cons/char/path.cc: Likewise.
* testsuite/27_io/basic_ifstream/open/char/path.cc: Likewise.
* testsuite/27_io/basic_ofstream/cons/char/path.cc: Likewise.
* testsuite/27_io/basic_ofstream/open/char/path.cc: Likewise.

From-SVN: r254871
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/fstream
libstdc++-v3/testsuite/27_io/basic_filebuf/open/char/path.cc
libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc
libstdc++-v3/testsuite/27_io/basic_fstream/open/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/open/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/cons/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/path.cc