
Please send me a copy of any replies to this message. On Tue, Oct 03, 2006 at 10:50:00AM -0500, Jeff Epler wrote:
The following code compiles with boost_1_31_0 but fails with 1_32_0 and 1_33_1 (tested with gcc 3.2.2 and gcc 4.0.3 on Linux systems): [snipped]
At the suggestion of Robert Ramey, I also tried rc_1_34_0 from CVS. It has the same problem: $ g++ -I. -c serialization-struct-load-test.cc -O3 -fmessage-length=0 ./boost/serialization/split_free.hpp: In static member function ‘static void boost::serialization::free_loader<Archive, T>::invoke(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = std::vector<K, std::allocator<K> >]’: ./boost/serialization/split_free.hpp:74: instantiated from ‘void boost::serialization::split_free(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = std::vector<K, std::allocator<K> >]’ ./boost/serialization/vector.hpp:68: instantiated from ‘void boost::serialization::serialize(Archive&, std::vector<U, Allocator>&, unsigned int) [with Archive = boost::archive::xml_iarchive, U = K, Allocator = std::allocator<K>]’ ./boost/serialization/serialization.hpp:140: instantiated from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = std::vector<K, std::allocator<K> >]’ ./boost/archive/detail/iserializer.hpp:158: instantiated from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::xml_iarchive, T = std::vector<K, std::allocator<K> >]’ serialization-struct-load-test.cc:23: instantiated from here serialization-struct-load-test.cc:17: error: ‘struct load’ is not a function, ./boost/archive/detail/iserializer.hpp:550: error: conflict with ‘template<class Archive, class T> void boost::archive::load(Archive&, T&)’ ./boost/serialization/split_free.hpp:58: error: in call to ‘load’ I did not re-test any other versions of gcc, but I do not expect the outcome to differ. Jeff Epler jepler@dsndata.com