|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-04-08 20:34:37
I've found an implementation of shared pointer serialization that martin
ecker sent me some time ago. It seems to me that it is simple transparent
and would satisfy all requirements. My only concern is that helper class
concept attachement to the archive needs to be generalized but this is
doable.
Robert Ramey
begin 666 shared_ptr.hpp
M(VEF;F1E9B!"3T]35%]315))04Q)6D%424].7U-(05)%1%]05%)?2%!0#0HC
M9&5F:6YE($)/3U-47U-%4DE!3$E:051)3TY?4TA!4D5$7U!44E](4% -"@T*
M+R\@35,@8V]M<&%T:6)L92!C;VUP:6QE<G,@<W5P<&]R=" C<')A9VUA(&]N
M8V4-"B-I9B!D969I;F5D*%]-4T-?5D52*2 F)B H7TU30U]615(@/CT@,3 R
M,"D-"B,@<')A9VUA(&]N8V4-"B-E;F1I9_at_T*#0HO+R\O+R\O+R\Q+R\O+R\O
M+R\O,B\O+R\O+R\O+S,O+R\O+R\O+R\T+R\O+R\O+R\O-2\O+R\O+R\O+S8O
M+R\O+R\O+R\W+R\O+R\O+R\O. T*+R\@<VAA<F5D7W!T<BYH<' Z('-E<FEA
M;&EZ871I;VX_at_9F]R(&)O;W-T('-H87)E9"!P;VEN=&5R#0H-"B\O("A#*2!#
M;W!Y<FEG:'0@,C P-"!2;V)E<G0_at_4F%M97D_at_86YD($UA<G1I;B!%8VME<@T*
M+R\@57-E+"!M;V1I9FEC871I;VX_at_86YD(&1I<W1R:6)U=&EO;B!I<R!S=6)J
M96-T('1O('1H92!";V]S="!3;V9T=V%R90T*+R\@3&EC96YS92P_at_5F5R<VEO
M;B Q+C N("A3964_at_86-C;VUP86YY:6YG(&9I;&4_at_3$E#14Y315\Q7S N='AT
M(&]R(&-O<'D_at_870-"B\O(&AT=' Z+R]W=W<N8F]O<W0N;W)G+TQ)0T5.4T5?
M,5\P+G1X="D-"@T*+R\@(%-E92!H='1P.B\O=W=W+F)O;W-T+F]R9R!F;W(@
M=7!D871E<RP_at_9&]C=6UE;G1A=&EO;BP_at_86YD(')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"@DO+R!A<W-I9VX@
M=&AE('-H87)E9%]P='(@=&\@=&AE('=E86M?<'1R#0H)=" ]('-P.PT*?0T*
M#0IT96UP;&%T93QC;&%S<R!!<F-H:79E+"!C;&%S<R!4/@T*:6YL:6YE('9O
M:60@<V5R:6%L:7IE* T*(" @($%R8VAI=F4@)B!A<BP-"B @("!B;V]S=#HZ
M=V5A:U]P='(\5#X@)G0L#0H@(" @8V]N<W0@=6YS:6=N960@:6YT(&9I;&5?
M=F5R<VEO;@T**7L-"B @("!B;V]S=#HZ<V5R:6%L:7IA=&EO;CHZ<W!L:71?
M9G)E92AA<BP@="P_at_9FEL95]V97)S:6]N*3L-"GT-"@T*?2 O+R!N86UE<W!A
M8V4@<V5R:6%L:7IA=&EO;@T*?2 O+R!N86UE<W!A8V4_at_8F]O<W0-"@T*(V5N
%9&EF#0H`
`
end
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk