Hi,
I am new to boost::iostream and trying to make a simple example of
iostream filtering with gzip compression for wide char, see example
below. It seems there is no support in the gzip wrapper for wide char.
How can I make it reading from a wide char stream ?
Regards
Bo
#include <iostream>
#include <ostream>
#include <sstream>
#include
#include
#include
#include
#include
#include
#include <fstream>
int main()
{
using namespace std;
namespace io = boost::iostreams;
{
io::filtering_wostream out;
//out.push(boost::iostreams::gzip_compressor()); // Error
out.push(boost::iostreams::wfile_sink("text.gz"));
out << 123 << endl;
wcout <<"Done writing" << endl;
}
{
io::filtering_wistream in;
//in.push(boost::iostreams::gzip_decompressor()); // Error
in.push(boost::iostreams::wfile_source("text.gz"));
wcout << in.rdbuf() << endl;
wcout <<"Done reading"<< endl;
}
}