id summary reporter owner description type status milestone component version severity resolution keywords cc 12219 Compilation error using input_seekable with gzip_decompressor() efrain.astudillo58@… Jonathan Turkanis " Hello: I am trying to use boost:iostream::input_seekable and GZIP decompressor. But, when the push function is called the compiler show me the error below. I posted the code too. {{{ std::ifstream file(""file.tgz""); boost::iostreams::filtering_streambuf in; in.push(boost::iostreams::gzip_decompressor());// here the error C2338, if I comment this line the error is gone in.push(file); }}} C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(244): error C2338: (is_convertible::value) 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(216) : see reference to function template instantiation 'void boost::iostreams::detail::chain_base,Ch,Tr,Alloc,Mode>::push_impl(const T &,std::streamsize,std::streamsize)' being compiled 1> with 1> [ 1> Mode=boost::iostreams::input_seekable 1> , Ch=char 1> , Tr=std::char_traits 1> , Alloc=std::allocator 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(216) : see reference to function template instantiation 'void boost::iostreams::detail::chain_base,Ch,Tr,Alloc,Mode>::push_impl(const T &,std::streamsize,std::streamsize)' being compiled 1> with 1> [ 1> Mode=boost::iostreams::input_seekable 1> , Ch=char 1> , Tr=std::char_traits 1> , Alloc=std::allocator 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(499) : see reference to function template instantiation 'void boost::iostreams::detail::chain_base,Ch,Tr,Alloc,Mode>::push(const T &,std::streamsize,std::streamsize,void *)' being compiled 1> with 1> [ 1> Mode=boost::iostreams::input_seekable 1> , Ch=char 1> , Tr=std::char_traits 1> , Alloc=std::allocator 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(499) : see reference to function template instantiation 'void boost::iostreams::detail::chain_base,Ch,Tr,Alloc,Mode>::push(const T &,std::streamsize,std::streamsize,void *)' being compiled 1> with 1> [ 1> Mode=boost::iostreams::input_seekable 1> , Ch=char 1> , Tr=std::char_traits 1> , Alloc=std::allocator 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(488) : see reference to function template instantiation 'void boost::iostreams::detail::chain_client::push_impl(const T &,std::streamsize,std::streamsize)' being compiled 1> with 1> [ 1> Self=boost::iostreams::chain,std::allocator> 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(488) : see reference to function template instantiation 'void boost::iostreams::detail::chain_client::push_impl(const T &,std::streamsize,std::streamsize)' being compiled 1> with 1> [ 1> Self=boost::iostreams::chain,std::allocator> 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> source\c_archive.cpp(60) : see reference to function template instantiation 'void boost::iostreams::detail::chain_client::push>>(const T &,std::streamsize,std::streamsize,void *)' being compiled 1> with 1> [ 1> Self=boost::iostreams::chain,std::allocator> 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1> source\c_archive.cpp(60) : see reference to function template instantiation 'void boost::iostreams::detail::chain_client::push>>(const T &,std::streamsize,std::streamsize,void *)' being compiled 1> with 1> [ 1> Self=boost::iostreams::chain,std::allocator> 1> , T=boost::iostreams::basic_bzip2_decompressor> 1> ] 1>C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/stream_buffer.hpp(68): error C2338: ( is_convertible< BOOST_DEDUCED_TYPENAME iostreams::category_of::type, Mode >::value ) 1> C:\Users\Efrain\Documents\CAMsoftware\trunk\thirdparty\boost\boost/iostreams/chain.hpp(257) : see reference to class template instantiation 'boost::iostreams::stream_buffer,Alloc,Mode>' being compiled 1> with 1> [ 1> Alloc=std::allocator 1> , Mode=boost::iostreams::input_seekable 1> ]" Support Requests new To Be Determined iostreams Boost 1.58.0 Problem GZIP, BZIP decompressor, seekable device