This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Accessing the UNIX file descriptor inside an fstream
- To: pedwards at disaster dot jaj dot com
- Subject: Re: Accessing the UNIX file descriptor inside an fstream
- From: Chris Rankin <rankincj at yahoo dot com>
- Date: Wed, 19 Sep 2001 16:40:26 -0700 (PDT)
- Cc: libstdc++ at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
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/