Boost logo

Boost Users :

From: Tim Murray (creative_at_[hidden])
Date: 2005-12-04 20:50:07


Aha, I found the problem. Apparently in one of the other libraries I
was using, new was being redefined and somehow that redefinition made
its way into the serialize code which was causing it to blow up.

Robert Ramey wrote:

>The attached code compiles without problem on VC 7.1 - So I can't see
>any problem.
>
>Robert Ramey
>
>PS. rather than using somethng like
>
>static CWorld *m_w = new CWorld;
>
>....
>
>ar & *m_w
>
>You might try
>
>static CWorld *m_w;
>
>ar & m_w; // let serialization create the pointer
>
>RR
>
>
>begin 666 test.cpp
>M(VEN8VQU9&4@/&9S=')E86T^#0HC:6YC;'5D92 \8F]O<W0O87)C:&EV92]T
>M97AT7VEA<F-H:79E+FAP<#X-"B-I;F-L=61E(#QB;V]S="]S97)I86QI>F%T
>M:6]N+W-P;&ET7VUE;6)E<BYH<' ^#0H-"FYA;65S<&%C92!7;W)L9 T*>PT*
>M(" @(&-L87-S($-7;W)L9 T*(" @('L-"B @("!F<FEE;F0_at_8VQA<W,@8F]O
>M<W0Z.G-E<FEA;&EZ871I;VXZ.F%C8V5S<SL-"B @("!T96UP;&%T93QC;&%S
>M<R!!<F-H:79E/@T*(" @('9O:60@<V%V92A!<F-H:79E("8_at_87(L(&-O;G-T
>M('5N<VEG;F5D(&EN="!V97)S:6]N*2!C;VYS=#L-"B @("!T96UP;&%T93QC
>M;&%S<R!!<F-H:79E/@T*(" @('9O:60@;&]A9"A!<F-H:79E("8_at_87(L(&-O
>M;G-T('5N<VEG;F5D(&EN="!V97)S:6]N*3L-"B @("!"3T]35%]315))04Q)
>M6D%424].7U-03$E47TU%34)%4B_at_I#0H-"B @("!P=6)L:6,Z#0H@(" @(" @
>M('Y#5V]R;&0H*3L-"@T*(" @(" @("!S=&%T:6,@0U=O<FQD*B!G9717;W)L
>M9"@I>R!R971U<FX@;5]W;W)L9#L@?0T*(" @(" @("!S=&%T:6,@8F]O;"!L
>M;V%D5V]R;&0H<W1D.CIS=')I;F<@9FEL96YA;64I.PT*(" @(" @("!S=&%T
>M:6,@8F]O;"!S879E5V]R;&0H<W1D.CIS=')I;F<@9FEL96YA;64I.PT*(" @
>M(" @("!S=&%T:6,@8F]O;"!U;FQO8617;W)L9"@I.PT*#0H@(" @<')O=&5C
>M=&5D._at_T*(" @(" @("!#5V]R;&0H*3L-"@T*(" @(" @("!S=&%T:6,@0U=O
>M<FQD("IM7W=O<FQD.PT*(" @('T[#0H-"B @(" O+T%N9"!T:&4@<V]U<F-E
>M(&]F('1H92!E<G)O<B!T<F%C97,@8F%C:R!T;R!T:&4_at_9F]L;&]W:6YG(&UE
>M;6)E<B!F=6YC=&EO;CH-"@T*(" @(&)O;VP_at_0U=O<FQD.CIL;V%D5V]R;&0H
>M<W1D.CIS=')I;F<@9FEL96YA;64I#0H@(" @>PT*(" @(" @("!I9BAM7W=O
>M<FQD*0T*(" @(" @(" @(" @<F5T=7)N(&9A;'-E.PT*#0H@(" @(" @(&U?
>M=V]R;&0@/2!N97<@0U=O<FQD*"D[#0H-"B @(" @(" @+R\@8W)E871E(&%N
>M9"!O<&5N(&%N(&%R8VAI=F4_at_9F]R(&EN<'5T#0H@(" @(" @('-T9#HZ:69S
>M=')E86T@:69S*&9I;&5N86UE+F-?<W1R*"DL('-T9#HZ:6]S.CIB:6YA<GDI
>M.PT*(" @(" @("!B;V]S=#HZ87)C:&EV93HZ=&5X=%]I87)C:&EV92!I82AI
>M9G,I.PT*(" @(" @(" O+R!R96%D(&-L87-S('-T871E(&9R;VT_at_87)C:&EV
>M90T*(" @(" @("!I82 F("IM7W=O<FQD.R @(" O+R$A(71H:7,@:7,@=&AE
>M(&QI;F4@=&AA="!T:&4_at_97)R;W(@=')A8V5S('1O#0H@(" @(" @(')E='5R
>7;B!T<G5E.PT*(" @('T-"@T*?0T*#0H`
>`
>end
>
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>


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