Is there any way to reuse filtering_istream object after it has been used..
Is this possible? The code above doesnt work..
//do read and some stuff
I want just want to reuse filter_stream (filtering_istream) object so that I could read data from another file..
Thanks a lot for help
I never used this one. However a quick check over the library documentation revealed:
filtering_istream.reset() as a likely candidate and filter_stream.empty() not being what you think, but instead a member function that returns true if the filtering chain is empty.
Thanks Mario! .reset() does what I need! :)