|
Boost Users : |
From: Jeff Epler (jepler_at_[hidden])
Date: 2006-10-03 15:21:32
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_at_[hidden]
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