Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams] Problem with gzip_decompressor
From: 陳韋任 (chenwj_at_[hidden])
Date: 2010-11-11 04:07:46


  Thanks for your reply, Brian. I think I have to study your code for
a little while.

  Nevertheless, I had tried out a solution by accident. See below,

  typedef io::composite<io::gzip_decompressor, io::filtering_istream>
    array_gzip_decompressor;

  io::gzip_decompressor filter;
  io::filtering_istream source(boost::make_iterator_range(buf));
  array_gzip_decompressor dev(filter, source);
  io::stream<array_gzip_decompressor> in(dev);

  Above code came from
  http://lists.boost.org/Archives/boost/2010/02/162214.php

Regards,
chenwj

-- 
Wei-Jen Chen (陳韋任)
Programming Language and System Laboratory (EC131)
Department of Computer Science, National Chiao Tung University

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net