Accessing the UNIX file descriptor inside an fstream

Chris Rankin
Wed Sep 19 16:40:00 GMT 2001

OK, I have managed to fix the sample program by adding
a filebuf* member to the Bar class and then creating a
new filebuf object on the heap. Presumably this means
that I now have to delete it manually in the
destructor too. However, given a choice, I don't think
that I'll be using this "ostomy sack" construction in
production code ...


Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information

More information about the Gcc-bugs mailing list