15 Jun
2010
15 Jun
'10
7:25 p.m.
Am 15.06.2010 um 18:08 schrieb Roland Bock:
You could try to use std::copy like this (untested code):
copy(istreambuf_iterator<char>(l_file), istreambuf_iterator<char>(), ostreambuf_iterator<char>(l_deflate));
I have a problem with the thrid parameter, if I change it to std::cout
there're no problems, but my l_deflate is a bio::filtering_streambuf<
bio::output > and I can't convert it to a
std::ostreambuf_iterator<char> for the std::copy. I get the message:
no matching function for call to 'std::ostream_iterator ::ostream_iterator
(boost::iostreams::filtering_streambuf