Accessing the UNIX file descriptor inside an fstream

Chris Rankin rankincj@yahoo.com
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 ...

Cheers,
Chris


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



More information about the Gcc-bugs mailing list