id summary reporter owner description type status milestone component version severity resolution keywords cc 12945 boost::iostreams filtering streambufs only work with binary archive fiesh@… Robert Ramey "Since there is no portable binary format, using the text archive and gzipping it seems convenient. However, using boost::iostream's filtering_streambuf only works with the binary archive, not the text archive, which is somewhat surprising. {{{#!cpp #include #include #include #include #include #include #include int main() { const std::vector v{0, 1, 2}; std::stringstream ss; { boost::iostreams::filtering_ostreambuf o; o.push(boost::iostreams::gzip_decompressor()); o.push(ss); // filtering_ostreambuf isn't accepted by text_oarchive's ctor, only by binary_oarchive // So this doesn't work boost::archive::text_oarchive oa(o); // But this does // boost::archive::binary_oarchive oa(o); oa << v; } std::cout << ss.str() << '\n'; return 0; } }}} " Feature Requests closed To Be Determined serialization Boost 1.62.0 Problem invalid