Article View: gnu.gcc.help
Article #50680need a class which works as a streambuf and an istream
From: Alan Ezust
Date: Mon, 09 Aug 1993 15:23
Date: Mon, 09 Aug 1993 15:23
18 lines
1507 bytes
1507 bytes
I was wondering if there is an easy way to get or create a class which
behaves internally as a streambuf (i.e. when you send stuff to it, instead
of storing to disk, ot stores in memory) but can be used as an istream in
functions (using the >> operator, etc)... Double-inheritance seems like
the right direction to go, but there would be many name conflicts..
I am using libg++ 1.39 and g++ 1.40, and I am modifying a huge program
which, after spending a month trying to to recompile under the new
compiler and libraries, was not successful, so I am sticking with this
version (if it ain't broke, don't fix it).
--
| Alan Ezust ezust@iro.umontreal.ca Montreal, Quebec, Canada |
|---------- Universite de Montreal Departement d'informatique -----------|
"Non-determinism means never having to say you're wrong."
Technical Details
Message-ID:
<1993Aug9.152344.18739@IRO.UMontreal.CA>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!agate!doc.ic.ac.uk!pipex!uunet!newsflash.concordia.ca!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!ezustShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5dabe9c65df32f8c,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-09 10:33:50 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!agate!doc.ic.ac.uk!pipex!uunet!newsflash.concordia.ca!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!ezust From: ezust@IRO.UMontreal.CA (Alan Ezust) Subject: need a class which works as a streambuf and an istream Message-ID: <1993Aug9.152344.18739@IRO.UMontreal.CA> Sender: news@IRO.UMontreal.CA Organization: Universite de Montreal, Canada Date: Mon, 9 Aug 1993 15:23:44 GMT Lines: 18