
I modified demo_shared_ptr to use NVP. It compiled, linked and ran with no warnings or errors of any kind. I'm using the HEAD version and their are significant differences with shared pointer serialization, but I don't know if that is what's different. Robert Ramey pwm wrote:
Robert Ramey wrote:
This would normally be due the asymettric serialization where one does:
Thanks for the reply. I have checked and I do not think I am making that error. So ... I am in the process of starting from scratch, and now that is giving me problems.
I am starting with the shared_ptr example (I am using 1.33.1 with VC 8 sp1) and that works fine for text archive (after I comment out the register_type calls for boost::detail::sp_counted_base_impl).
But when I replace all text archives with xml archives and update all serialization calls with BOOST_SERIALIZATION_NVP, I still get the static assert error that says I need to wrap with make_nvp. Any suggestions on how to get the shared_ptr example working with xml archives?
Thanks, Phil
P.S. I would try using the head or a stable point in CVS, but I cannot access the boost cvs repository. Is there a place where I can download a zip of 1.34?
begin 666 test_zmisc.cpp
M+R\@9&5M;U]S:&%R961?<'1R+F-P<" Z(&1E;6]N