diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-11-17 14:07:58 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-11-17 14:07:58 +0000 |
commit | 96e0367ead5d8dcac3bec2865582e76e2fbab190 (patch) | |
tree | 7206a6f455f377e8e51d9d7466c82d36a3e08a50 /gcc | |
parent | 610f66a3d14e56dee60cd542579ffbf14f803d80 (diff) | |
download | gcc-96e0367ead5d8dcac3bec2865582e76e2fbab190.zip gcc-96e0367ead5d8dcac3bec2865582e76e2fbab190.tar.gz gcc-96e0367ead5d8dcac3bec2865582e76e2fbab190.tar.bz2 |
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions