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<char, char, std::char_traits<char> >::ostream_iterator(boost::iostreams::filtering_streambuf<boost::iostreams::output, char, std::char_traits<char>, std::allocator<char>, boost::iostreams::public_>&)'
Do you have any idea?
Thanks