help with standard streams and the file descriptor
Benjamin Kosnik
bkoz@redhat.com
Wed Jan 7 06:02:00 GMT 2004
>The C++ standard does not support this as fd() is gone. Is there a way
>to do this in a portable fashion or will I be able to make this work
>only if I use the gcc extension as described in
>
>http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#11
There is no portable way to use a file descriptor with a filebuf. Your
best bet is something like the wrapper class as referenced above.
-benjamin
More information about the Libstdc++
mailing list