Boost logo

Boost Users :

From: Sergey Skorniakov (s.skorniakov_at_[hidden])
Date: 2005-08-25 08:37:46


Has anybody tested loading of shared_ptr with polymorphic archives? All that
I manage to achive is just a couple of errors:

c:\boost_1_33_0\boost\archive\detail\interface_iarchive.hpp(73) : error
C2039: 'basic_iarchive' : is not a member of
'boost::archive::polymorphic_iarchive'
c:\boost_1_33_0\boost\archive\polymorphic_iarchive.hpp(52) : see declaration
of 'boost::archive::polymorphic_iarchive'
c:\boost_1_33_0\boost\archive\detail\interface_iarchive.hpp(72) : while
compiling class-template member function 'void
boost::archive::detail::interface_iarchive<Archive>::lookup_helper(const
boost::serialization::extended_type_info *const ,boost::shared_ptr<T> &)'
with
[
Archive=boost::archive::polymorphic_iarchive,
T=void
]
c:\boost_1_33_0\boost\archive\polymorphic_iarchive.hpp(54) : see reference
to class template instantiation
'boost::archive::detail::interface_iarchive<Archive>' being compiled
with
[
Archive=boost::archive::polymorphic_iarchive
]
c:\boost_1_33_0\boost\archive\detail\interface_iarchive.hpp(73) : error
C2662: 'boost::archive::detail::basic_iarchive::lookup_basic_helper' :
cannot convert 'this' pointer from 'boost::archive::polymorphic_iarchive' to
'boost::archive::detail::basic_iarchive &'
Reason: cannot convert from 'boost::archive::polymorphic_iarchive' to
'boost::archive::detail::basic_iarchive'
Conversion requires a second user-defined-conversion operator or constructor


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