Dear All, I'm facing the following problem. I have the following class hierarchy: AbstractBase <--- AbstractDerived <---- ConcreteDerived I managed to make the serialization of shared_ptr<AbstractBase> using text and binary archives (text_[i/o]archive, binary_[i/o]archive), tested, and works fine. However, when I try to send an shared_ptr<AbstractBase> with some MPI function, the compiler complains about packed_iarchive not having append() and reset() functions. /home/jooam/usr/include/boost-1_35/boost/serialization/shared_ptr.hpp:129: error: 'class boost::mpi::packed_iarchive' has no member named 'append' /home/jooam/usr/include/boost-1_35/boost/serialization/shared_ptr.hpp:137: error: 'class boost::mpi::packed_iarchive' has no member named 'reset' Any help is appreciated. Thank you, Andras ____________________________________________________________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/
This is due to a change in the archive structure by Robert Ramey that we were not aware of. I will work on implementing the newly required functions. Matthias On 4 Jul 2007, at 10:40, Andras Joo wrote:
Dear All,
I'm facing the following problem. I have the following class hierarchy:
AbstractBase <--- AbstractDerived <---- ConcreteDerived I managed to make the serialization of shared_ptr<AbstractBase> using text and binary archives (text_[i/o]archive, binary_[i/o]archive), tested, and works fine.
However, when I try to send an shared_ptr<AbstractBase> with some MPI function, the compiler complains about packed_iarchive not having append() and reset() functions.
/home/jooam/usr/include/boost-1_35/boost/serialization/ shared_ptr.hpp:129: error: 'class boost::mpi::packed_iarchive' has no member named 'append' /home/jooam/usr/include/boost-1_35/boost/serialization/ shared_ptr.hpp:137: error: 'class boost::mpi::packed_iarchive' has no member named 'reset'
Any help is appreciated. Thank you, Andras
______________________________________________________________________ ______________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://autos.yahoo.com/green_center/ _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Don't be tooooo hasty. These functions are implemented in a helper class which maintains certain state information which shared_ptr needs to be correctly loaded. Before, the shared_ptr helper was mixed in in such a way that everyone had to include it. Now its only included if it is deemed necessary. I deemed it necessary in the case of the "standard" archives as that has the way it has always been. In the case of packed_?archive one might or might not want to include serialization of shared_ptrs as part of the archive. If one is interested only in performance - one might want to excluded it - (matching up loaded pointers can take significant execution time. If one wants packed_?archive to be totally compatible with other "standard" boost archives, then the same shared_ptr mix-in helper should be added there as well. Robert Ramey Matthias Troyer wrote:
This is due to a change in the archive structure by Robert Ramey that we were not aware of. I will work on implementing the newly required functions.
Matthias
That's what I'm planning to do. On 6 Jul 2007, at 12:35, Robert Ramey wrote:
Don't be tooooo hasty.
These functions are implemented in a helper class which maintains certain state information which shared_ptr needs to be correctly loaded. Before, the shared_ptr helper was mixed in in such a way that everyone had to include it. Now its only included if it is deemed necessary. I deemed it necessary in the case of the "standard" archives as that has the way it has always been.
In the case of packed_?archive one might or might not want to include serialization of shared_ptrs as part of the archive. If one is interested only in performance - one might want to excluded it - (matching up loaded pointers can take significant execution time. If one wants packed_?archive to be totally compatible with other "standard" boost archives, then the same shared_ptr mix-in helper should be added there as well.
Robert Ramey
Matthias Troyer wrote:
This is due to a change in the archive structure by Robert Ramey that we were not aware of. I will work on implementing the newly required functions.
Matthias
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Andras Joo
-
Matthias Troyer
-
Robert Ramey