Summary: | dev-libs/boost-1.33.1-r1 - boost::iostreams::bzip2_compressor() does not work | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeffrey Graham <grahamspam> |
Component: | [OLD] Library | Assignee: | Tiziano Müller (RETIRED) <dev-zero> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jeffrey Graham
2007-01-24 14:27:05 UTC
Which ebuild and version is this about??? this is dev-libs/boost version 1.33.1-r1 #include <fstream> #include <iostream> #include <boost/iostreams/copy.hpp> #include <boost/iostreams/compose.hpp> #include <boost/iostreams/filter/bzip2.hpp> #include <boost/iostreams/device/file.hpp> #include <boost/iostreams/filtering_stream.hpp> using namespace boost; int main(void) { std::ofstream file_stream; iostreams::filtering_stream<iostreams::output> stream; file_stream.open("hello.bz2", std::ios_base::out | std::ios_base::binary); stream.push(iostreams::bzip2_compressor()); stream.push(file_stream); std::ifstream input; input.open("hello.in", std::ios_base::in | std::ios_base::binary); copy(input,stream); stream.pop(); return 0; } |