I have got a basic_file_source for reading a file. Can I copy the whole file into a filtering_streambuf, whithout closing the stream?
std::copy( std::istream_iterator<char>(l_file), std::istream_iterator<char>(), std::ostreambuf_iterator<char>(&l_target) )
I would like to switch std::ifstream to basic_file_source. I can't use boost::copy because it close after writing my target stream.
Do the basic_file_source hold a iterator, which I can use with std::copy? How can I do this?
Thanks
Phil