[PATCH] Provide filesystem::path overloads for file streams (LWG 2676, partial)

Jonathan Wakely jwakely@redhat.com
Fri Oct 27 13:00:00 GMT 2017


On 27/10/17 13:43 +0100, Jonathan Wakely wrote:
>This implements part of LWG 2676. I haven't added the new members
>taking wide character strings, because they're only needed on Windows,
>where the Filesystem library doesn't work yet. I'll send a follow-up
>patch about those overloads.

This patch should add the wide character overloads, for systems that
support _wfopen for opening a FILE from a wchar_t string (i.e. MinGW
and MinGW-w64). This is the missing part of LWG 2676.

These are not templates, so would require new symbols to be exported
from the library (but only for Windows). As is done with std::string
for now, I've just disabled the explicit instantiation declarations
for C++17, so the functions get implicitly instantiated as needed.

I'm not committing this, because I haven't tested it, and I get angry
people complaining why I try to support Windows in good faith. So this
is provided with no testing and not committed. Windows users can do
their own testing.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 10054 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20171027/a1189b39/attachment.bin>


More information about the Libstdc++ mailing list