It's not possible to construct a path::string_type from an allocator of a different type. Create the correct specialization of basic_string, and adjust path::_S_str_convert to use a basic_string_view so that it is independent of the allocator type. PR libstdc++/94242 * include/bits/fs_path.h (path::_S_str_convert): Replace first parameter with basic_string_view so that strings with different allocators can be accepted. (path::generic_string<C,T,A>()): Use basic_string object that uses the right allocator type. * testsuite/27_io/filesystem/path/generic/94242.cc: New test. * testsuite/27_io/filesystem/path/generic/generic_string.cc: Improve test coverage.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| basic_filebuf | Loading commit data... | |
| basic_fstream | Loading commit data... | |
| basic_ifstream | Loading commit data... | |
| basic_ios | Loading commit data... | |
| basic_iostream | Loading commit data... | |
| basic_istream | Loading commit data... | |
| basic_istringstream | Loading commit data... | |
| basic_ofstream | Loading commit data... | |
| basic_ostream | Loading commit data... | |
| basic_ostringstream | Loading commit data... | |
| basic_streambuf | Loading commit data... | |
| basic_stringbuf | Loading commit data... | |
| basic_stringstream | Loading commit data... | |
| filesystem | Loading commit data... | |
| fpos | Loading commit data... | |
| headers | Loading commit data... | |
| ios_base | Loading commit data... | |
| manipulators | Loading commit data... | |
| objects | Loading commit data... | |
| types | Loading commit data... | |
| rvalue_streams-2.cc | Loading commit data... | |
| rvalue_streams.cc | Loading commit data... |