Boost logo

Boost Users :

From: tonton (tonton-lists_at_[hidden])
Date: 2005-08-26 14:55:05


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 <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/gzip.hpp>

// #include <boost/date_time/local_time/local_time.hpp>

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<SymmetricFilter, Alloc>::read(Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >, SymmetricFilter = boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, 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<char, std::char_traits<char> >, Alloc = std::allocator<char>]’
/usr/include/boost/iostreams/read.hpp:215: instantiated from ‘static std::streamsize boost::iostreams::detail::read_filter_impl<boost::iostreams::multichar_tag>::read(T&, Source&, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]’
/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<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]’
/usr/include/boost/iostreams/detail/adapter/concept_adapter.hpp:247: instantiated from ‘static std::streamsize boost::iostreams::detail::flt_wrapper_impl<boost::iostreams::input>::read(Filter&, Source*, typename boost::iostreams::char_type_of<T>::type*, std::streamsize) [with Filter = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, Source = boost::iostreams::detail::linked_streambuf<char, std::char_traits<char> >]’
/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<char, std::char_traits<char> >, T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >]’
/usr/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:250: instantiated from ‘typename boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::int_type boost::iostreams::detail::indirect_streambuf<T, Tr, Alloc, Mode>::underflow() [with T = boost::iostreams::basic_gzip_compressor<std::allocator<char> >, 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<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, 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<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, 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<boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >, 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’


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net