|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2007-02-08 18:53:18
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<W1R871E<R!A9&1I;F<@
M<V5R:6%L:7IA=&EO;B!T;R!A('1E;7!L871E#0H-"B\O("A#*2!#;W!Y<FEG
M:'0@,C P,B!2;V)E<G0_at_4F%M97D@+2!H='1P.B\O=W=W+G)R<V0N8V]M("X@
M4&]L>6UO<G!H:6,-"B\O(&1E<FEV960@<&]I;G1E<B!E>&%M<&QE(&)Y($1A
M=FED(%1O;F=E+@T*#0HO+R!5<V4L(&UO9&EF:6-A=&EO;B!A;F0_at_9&ES=')I
M8G5T:6]N(&ES('-U8FIE8W0@=&\@=&AE($)O;W-T(%-O9G1W87)E#0HO+R!,
M:6-E;G-E+"!697)S:6]N(#$N,"X@*%-E92!A8V-O;7!A;GEI;F<@9FEL92!,
M24-%3E-%7S%?,"YT>'0@;W(@8V]P>2!A= T*+R\@:'1T<#HO+W=W=RYB;V]S
M="YO<F<O3$E#14Y315\Q7S N='AT*0T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*(" @(" @("!S=&0Z.F]F<W1R96%M(&]F<RAF
M:6QE;F%M92YC7W-T<B_at_I*3L-"B @(" @(" @8F]O<W0Z.F%R8VAI=F4Z.GAM
M;%]O87)C:&EV92!O82AO9G,I.PT*(" @(" @("!O82 \/"!"3T]35%]315))
M04Q)6D%424].7TY64"AS<&$I.PT*(" @(" @("!O82 \/"!"3T]35%]315))
M04Q)6D%424].7TY64"AS<&$Q*3L-"B @("!]#0H@(" @+R\@<F5S970@=&AE
M('-H87)E9"!P;VEN=&5R('1O($Y53$P-"B @(" O+R!T:&5R96)Y(&1E<W1R
M;WEI;F<@=&AE(&]B:F5C="!O9B!T>7!E($$-"B @("!S<&$N<F5S970H*3L-
M"B @("!S<&$Q+G)E<V5T*"D[#0H@(" @9&ES<&QA>2AS<&$L('-P83$I.PT*
M(" @("\O(')E<W1O<F4@<W1A=&4@=&\@;VYE(&5Q=6EV86QE;G0@=&\@=&AE
M(&]R:6=I;F%L#0H@(" @+R\@8W)E871I;F<@82!N97<@='EP92!!(&]B:F5C
M= T*(" @('L-"B @(" @(" @+R\@;W!E;B!T:&4_at_87)C:&EV90T*(" @(" @
M("!S=&0Z.FEF<W1R96%M(&EF<RAF:6QE;F%M92YC7W-T<B_at_I*3L-"B @(" @
M(" @8F]O<W0Z.F%R8VAI=F4Z.GAM;%]I87)C:&EV92!I82AI9G,I.PT*#0H@
M(" @(" @("\O(')E<W1O<F4@=&AE('-C:&5D=6QE(&9R;VT@=&AE(&%R8VAI
M=F4-"B @(" @(" @:6$@/CX_at_0D]/4U1?4T5224%,25I!5$E/3E].5E H<W!A
M*3L-"B @(" @(" @:6$@/CX_at_0D]/4U1?4T5224%,25I!5$E/3E].5E H<W!A
M,2D[#0H@(" @?0T*(" @(&1I<W!L87DH<W!A+"!S<&$Q*3L-"B @("!S<&$N
M<F5S970H*3L-"B @("!S<&$Q+G)E<V5T*"D[#0H-"B @("!S=&0Z.F-O=70@
M/#P@<W1D.CIE;F1L.PT*(" @('-T9#HZ8V]U=" \/"!S=&0Z.F5N9&P[#0H@
M(" @<W1D.CIC;W5T(#P\(").97<@=&5S=',B(#P\('-T9#HZ96YD;#L-"@T*
M(" @("\O+R\O+R\O+R\O+R\O+R\O#0H@(" @+R\@041$251)3TX_at_0ED@1%0-
M"B @(" O+R!C<F5A=&4@(&$@;F5W('-H87)E9"!P;VEN=&5R('1O('1A(&YE
M=R!O8FIE8W0@;V8@='EP92!!#0H@(" @<W!A(#T_at_8F]O<W0Z.G-H87)E9%]P
M='(\03XH;F5W($(I.PT*(" @('-P83$@/2!S<&$[#0H@(" @9&ES<&QA>2AS
M<&$L('-P83$I.PT*(" @("\O('-E<FEA;&EZ92!I= T*(" @('L-"B @(" @
M(" @<W1D.CIO9G-T<F5A;2!O9G,H9FEL96YA;64N8U]S='(H*2D[#0H@(" @
M(" @(&)O;W-T.CIA<F-H:79E.CIX;6Q?;V%R8VAI=F4@;V$H;V9S*3L-"B @
M(" @(" @;V$N<F5G:7-T97)?='EP92AS=&%T:6-?8V%S=#Q"("H^*$Y53$PI
M*3L-"B @(" @(" @;V$@/#P_at_0D]/4U1?4T5224%,25I!5$E/3E].5E H<W!A
M*3L-"B @(" @(" @;V$@/#P_at_0D]/4U1?4T5224%,25I!5$E/3E].5E H<W!A
M,2D[#0H@(" @?0T*(" @("\O(')E<V5T('1H92!S:&%R960@<&]I;G1E<B!T
M;R!.54Q,#0H@(" @+R\@=&AE<F5B>2!D97-T<F]Y:6YG('1H92!O8FIE8W0@
M;V8@='EP92!"#0H@(" @<W!A+G)E<V5T*"D[#0H@(" @<W!A,2YR97-E="@I
M.PT*(" @(&1I<W!L87DH<W!A+"!S<&$Q*3L-"B @(" O+R!R97-T;W)E('-T
M871E('1O(&]N92!E<75I=F%L96YT('1O('1H92!O<FEG:6YA; T*(" @("\O
M(&-R96%T:6YG(&$@;F5W('1Y<&4_at_0B!O8FIE8W0-"B @("![#0H@(" @(" @
M("\O(&]P96X@=&AE(&%R8VAI=F4-"B @(" @(" @<W1D.CII9G-T<F5A;2!I
M9G,H9FEL96YA;64N8U]S='(H*2D[#0H@(" @(" @(&)O;W-T.CIA<F-H:79E
M.CIX;6Q?:6%R8VAI=F4@:6$H:69S*3L-"@T*(" @(" @(" O+R!R97-T;W)E
M('1H92!S8VAE9'5L92!F<F]M('1H92!A<F-H:79E#0H@(" @(" @(&EA+G)E
M9VES=&5R7W1Y<&4H<W1A=&EC7V-A<W0\0B J/BA.54Q,*2D[#0H@(" @(" @
M(&EA(#X^($)/3U-47U-%4DE!3$E:051)3TY?3E90*'-P82D[#0H@(" @(" @
M(&EA(#X^($)/3U-47U-%4DE!3$E:051)3TY?3E90*'-P83$I.PT*(" @('T-
M"B @("!D:7-P;&%Y*'-P82P@<W!A,2D[#0H@(" @+R\O+R\O+R\O+R\O+R\O
M#0H@(" @<W1D.CIR96UO=F4H9FEL96YA;64N8U]S='(H*2D[#0H-"B @(" O
M+R!O8FH@;V8@='EP92!!(&=E=',@9&5S=')O>65D#0H@(" @+R\@87,@<VUA
L<G1?<'1R(&=O97,@;W5T(&]F('-C;W!E#0H@(" @<F5T=7)N(# [#0I]#0H`
`
end
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