
I was able to reproduce the problem using your example on my my gcc 3.3 compiler. I can't explain it though- and for what its worth no other compiler has a complaint with this. Sorry I can't give a better answer. Robert Ramey Jeff Epler wrote:
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
::invoke(Archive&, T&, unsigned int) [with Archive = boost::archive::xml_iarchive, T = std::vector ]': ./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
]' ./boost/serialization/vector.hpp:68: instantiated from 'void boost::serialization::serialize(Archive&, std::vector&, 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 ]' ./boost/archive/detail/iserializer.hpp:158: instantiated from 'void boost::archive::detail::iserializer ::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::xml_iarchive, T = std::vector ]' 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 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 _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users