Hi,

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?
I do this at this time with:

std::ifstream l_file( "filename", std::ifstream::in | std::ifstream::binary ); 
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