This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]