This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: basic_filebuf question
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Stephan Buys <s dot buys at icon dot co dot za>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 29 Jan 2002 10:44:46 -0800 (PST)
- Subject: Re: basic_filebuf question
> I have thought about creating my own basic_filebuf class with Search
> implemented and then setting it by using MyFile.rdbuf(&MyBuf). According to
> documentation I read (C++ Programming Language) this should make my ifstream
> use my new buffer. This version of the std::basic_ios (I think) is not
> implemented it seems.
This is correct. Make sure you are using libstdc++-v3. If you look
through testsuite/27_io/*.cc you'll see some examples of this.
-benjamin