This simple test fails to compile with gcc 4.0.1 (or 4.0.2, it's the
debian unstable version) and boost 1.33.0 if the date_time include is
uncommented.
Is there any known incompatibility between the two libraries ?
#include
#include
// #include
int main()
{
boost::iostreams::filtering_istream in;
in.push(boost::iostreams::gzip_compressor());
return 0;
}
The full error is attached
/usr/include/boost/iostreams/filter/symmetric.hpp: In member function ‘std::streamsize boost::iostreams::symmetric_filter::read(Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf, SymmetricFilter = boost::iostreams::detail::zlib_compressor_impl, Alloc = std::allocator<char>]’:
/usr/include/boost/iostreams/filter/gzip.hpp:199: instantiated from ‘std::streamsize boost::iostreams::basic_gzip_compressor<Alloc>::read(Source&, char*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf, Alloc = std::allocator<char>]’
/usr/include/boost/iostreams/read.hpp:215: instantiated from ‘static std::streamsize boost::iostreams::detail::read_filter_implboost::iostreams::multichar_tag::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor, Source = boost::iostreams::detail::linked_streambuf]’
/usr/include/boost/iostreams/read.hpp:56: instantiated from ‘std::streamsize boost::iostreams::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor, Source = boost::iostreams::detail::linked_streambuf]’
/usr/include/boost/iostreams/detail/adapter/concept_adapter.hpp:247: instantiated from ‘static std::streamsize boost::iostreams::detail::flt_wrapper_implboost::iostreams::input::read(Filter&, Source*, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::iostreams::basic_gzip_compressor, Source = boost::iostreams::detail::linked_streambuf]’
/usr/include/boost/iostreams/detail/adapter/concept_adapter.hpp:74: instantiated from ‘std::streamsize boost::iostreams::detail::concept_adapter<T>::read(typename boost::iostreams::char_type_of<T>::type*, std::streamsize, Source*) [with Source = boost::iostreams::detail::linked_streambuf, T = boost::iostreams::basic_gzip_compressor]’
/usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:250: instantiated from ‘typename boost::iostreams::detail::indirect_streambuf::int_type boost::iostreams::detail::indirect_streambuf::underflow() [with T = boost::iostreams::basic_gzip_compressor, Tr = std::char_traits<char>, Alloc = std::allocator<char>, Mode = boost::iostreams::input]’
test.cpp:10: instantiated from here
/usr/include/boost/iostreams/filter/symmetric.hpp:112: error: ‘boost::iostreams::symmetric_filter, std::allocator<char> >::<anonymous enum>’ is/uses anonymous type
/usr/include/boost/iostreams/filter/symmetric.hpp:112: error: trying to instantiate ‘template<class T> struct boost::is_integral’
/usr/include/boost/iostreams/filter/symmetric.hpp:124: error: ‘boost::iostreams::symmetric_filter, std::allocator<char> >::<anonymous enum>’ is/uses anonymous type
/usr/include/boost/iostreams/filter/symmetric.hpp:124: error: trying to instantiate ‘template<class T> struct boost::is_integral’
/usr/include/boost/iostreams/filter/symmetric.hpp:131: error: ‘boost::iostreams::symmetric_filter, std::allocator<char> >::<anonymous enum>’ is/uses anonymous type
/usr/include/boost/iostreams/filter/symmetric.hpp:131: error: trying to instantiate ‘template<class T> struct boost::is_integral’