2015-06-19 16:56 GMT+02:00 Ruben Van Boxem <[email protected]>:

> 2015-06-19 16:45 GMT+02:00 Etienne Sandré-Chardonnal <
> [email protected]>:
>
>> Dear all
>>
>> I have found this old gcc discussion from Ruben :
>> http://gcc.gnu.org/ml/libstdc++/2011-06/msg00066.html
>>
>> Is this available in recent mingw releases? I cannot find any of these
>> extensions in 4.9.2 headers (and it does not work)
>>
>
> No, unfortunately, it is not. You must manually work around this
> shortcoming by e.g. using the libstdc++ extension:
> https://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_io.html
> Note that proper memory management is kind of tricky (you need to take
> care of the file descriptor or FILE* yourself)
>

Correction: onl the FILE* if you use that constructor. File descriptors are
handled by the stdio_filebuf destructor.
See: https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00070.html

>
> Ruben
>
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to