|
Boost : |
From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-07-18 00:51:21
Little modifs:
- squad_ptr<>::operator * () retouched;
- squad_cast() inlined.
Philippe A. Bouchard
"Philippe A. Bouchard" <philippeb_at_[hidden]> wrote in message
news:ah5gfp$49f$1_at_main.gmane.org...
> Hi,
>
> I've made some modifications in squad_ptr.h which will allow cleaner
> instanciation of the objects pointed to. You won't need a derived class
> from a counter type or anything like it. The only little drawback is that
> it requires a more complex expression when instanciated, but no add_ref
> overloads are demanded on the other hand.
>
> (Sorry if can not reply for the next 3 days).
>
>
>
> Regards,
>
> Philippe A. Bouchard
>
>
>
>
----------------------------------------------------------------------------
---- > > > > _______________________________________________ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost > begin 666 squad_ptr.h M+RH*(" @5&AI<R!F:6QE(&ES('!A<G0@;V8@=&AE($9$22!L:6)R87)I97,* M(" @0V]P>7)I9VAT("AC*2 R,# R(%!H:6QI<'!E($$N($)O=6-H87)D(#QP M:&EL:7!P94!F;W)N=7_at_N8V]M/@H*(" @5&AI<R!L:6)R87)Y(&ES(&9R964@ M<V]F='=A<F4[('EO=2!C86X@<F5D:7-T<FEB=71E(&ET(&%N9"]O<@H@("!M M;V1I9GD@:70@=6YD97(@=&AE('1E<FUS(&]F('1H92!'3E4_at_3&EB<F%R>2!' M96YE<F%L(%!U8FQI8PH@("!,:6-E;G-E('9E<G-I;VX@,B!A<R!P=6)L:7-H M960_at_8GD@=&AE($9R964_at_4V]F='=A<F4_at_1F]U;F1A=&EO;BX*"B @(%1H:7,@ M;&EB<F%R>2!I<R!D:7-T<FEB=71E9"!I;B!T:&4@:&]P92!T:&%T(&ET('=I M;&P_at_8F4@=7-E9G5L+ H@("!B=70_at_5TE42$]55"!!3ED_at_5T%24D%.5%D[('=I M=&AO=70_at_979E;B!T:&4@:6UP;&EE9"!W87)R86YT>2!O9_at_H@("!-15)#2$%. M5$%"24Q)5%D@;W(@1DE43D534R!&3U(@02!005)424-53$%2(%!54E!/4T4N M("!3964@=&AE($=.50H@("!,:6)R87)Y($=E;F5R86P_at_4'5B;&EC($QI8V5N M<V4_at_9F]R(&UO<F4_at_9&5T86EL<RX*"B @(%EO=2!S:&]U;&0@:&%V92!R96-E M:79E9"!A(&-O<'D@;V8@=&AE($=.52!,:6)R87)Y($=E;F5R86P_at_4'5B;&EC M($QI8V5N<V4*(" @86QO;F<@=VET:"!T:&ES(&QI8G)A<GD[('-E92!T:&4@ M9FEL92!#3U!924Y'+DQ)0BX@($EF(&YO="P@=W)I=&4@=&\*(" @=&AE($9R M964_at_4V]F='=A<F4_at_1F]U;F1A=&EO;BP_at_26YC+BP_at_-3D@5&5M<&QE(%!L86-E M("T_at_4W5I=&4@,S,P+ H@("!";W-T;VXL($U!(# R,3$Q+3$S,#<L(%5302X* M*B\*"@HC:69N9&5F(%-154%$7U!44E]("B-D969I;F4_at_4U%5041?4%127T@* M"@HC:6YC;'5D92 \;F5W/@H*"FYA;65S<&%C92!F9&D*>PH*"G1E;7!L871E M(#QT>7!E;F%M92!?5' ^"@ES=')U8W0@<W%U861?<'1R.PH*"G1E;7!L871E M(#QT>7!E;F%M92!?5' ^"@ES=')U8W0@<W%U861?=&%R9V5T"@E["@D)9G)I M96YD(&-L87-S('-Q=6%D7W!T<CQ?5' ^.PH*"0ET>7!E9&5F(%]4<"!V86QU M95]T>7!E.PH*"@D)<W%U861?=&%R9V5T*"D_at_.B!M7V-O=6YT97(H,2D*"0E[ M"@D)?0H*"0E^<W%U861?=&%R9V5T*"D*"0E["@D)"7)E:6YT97)P<F5T7V-A M<W0\=F%L=65?='EP92 F/BAM7V)U9F9E<BDN?G9A;'5E7W1Y<&4H*3L*"0E] M"@H)<')I=F%T93H*"0EC:&%R(&U?8G5F9F5R6W-I>F5O9BAV86QU95]T>7!E M*5T["@D);&]N9R!M7V-O=6YT97(["@E].PH*"G1E;7!L871E(#QT>7!E;F%M M92!?5' ^"@ES=')U8W0@<W%U861?<'1R"@E["@D)='EP961E9B!?5' @=F%L M=65?='EP93L*"@D)='EP961E9B!S<75A9%]T87)G970\=F%L=65?='EP93X@ M96QE;65N=%]T>7!E.PH*"@D)<W%U861?<'1R*&5L96UE;G1?='EP92 J(&%? M<" ](# I(#H@;5]P='(H85]P*0H)"7L*"0E]"@H)"7-Q=6%D7W!T<BAS<75A M9%]P='(@8V]N<W0@)B!A7W I(#H@;5]P='(H85]P+G-H87)E*"DI"@D)>PH) M"7T*"@D)=&5M<&QA=&4@/'1Y<&5N86UE(%]4<#$^"@D)"7-Q=6%D7W!T<BAS M<75A9%]P='(\7U1P,3X_at_8V]N<W0@)B!A7W I(#H@;5]P='(H85]P+G-H87)E M*"DI"@D)"7L*"0D)?0H*"0ES<75A9%]P='(@)B!O<&5R871O<B ]("AS<75A M9%]P='(@8V]N<W0@)B!A7W I"@D)>PH)"0EI9B H)B!A7W @(3T@=&AI<RD* M"0D)>PH)"0D)<F5S970H85]P+G-H87)E*"DI.PH)"0E]"@D)"7)E='5R;B J M('1H:7,["@D)?0H*"0ET96UP;&%T92 \='EP96YA;64_at_7U1P,3X*"0D)<W%U M861?<'1R("8@;W!E<F%T;W(@/2 H<W%U861?<'1R/%]4<#$^(&-O;G-T("8@ M85]P*0H)"0E["@D)"0EI9B H85]P+F=E="@I("$]('1H:7,M/F=E="@I*0H) M"0D)>PH)"0D)"7)E<V5T*&%?<"YS:&%R92_at_I*3L*"0D)"7T*"0D)"7)E='5R M;B J('1H:7,["@D)"7T*"@D)?G-Q=6%D7W!T<B_at_I"@D)>PH)"0EI9B H;5]P M='(@)B8@(2 M+2!M7W!T<BT^;5]C;W5N=&5R*0H)"0E["@D)"0ED96QE=&4@ M;5]P='(["@D)"7T*"0E]"@H)"79A;'5E7W1Y<&4@)B!O<&5R871O<B J("@I M(&-O;G-T"@D)>PH)"0ER971U<FX@*B!R96EN=&5R<')E=%]C87-T/'9A;'5E M7W1Y<&4@*CXH;5]P='(I.PH)"7T*"@D)=F%L=65?='EP92 J(&]P97)A=&]R M("T^("@I(&-O;G-T"@D)>PH)"0ER971U<FX@<F5I;G1E<G!R971?8V%S=#QV M86QU95]T>7!E("H^*&U?<'1R*3L*"0E]"@H)"79A;'5E7W1Y<&4@*B!G970H M*2!C;VYS= H)"7L*"0D)<F5T=7)N(')E:6YT97)P<F5T7V-A<W0\=F%L=65? M='EP92 J/BAM7W!T<BD["@D)?0H*"0EE;&5M96YT7W1Y<&4@*B!S:&%R92_at_I M(&-O;G-T"@D)>PH)"0EI9B H;5]P='(I"@D)"7L*"0D)"2LK(&U?<'1R+3YM M7V-O=6YT97(["@D)"7T*"0D)<F5T=7)N(&U?<'1R.PH)"7T*"@D)=F]I9"!R M97-E="AE;&5M96YT7W1Y<&4@*B!A7W @/2 P*0H)"7L*"0D):68@*&U?<'1R M("8F("$@+2T@;5]P='(M/FU?8V]U;G1E<BD*"0D)>PH)"0D)9&5L971E(&U? M<'1R.PH)"0E]"@D)"6U?<'1R(#T_at_85]P.PH)"7T*"@EP<FEV871E._at_H)"65L M96UE;G1?='EP92 J(&U?<'1R.PH)?3L*"@IT96UP;&%T92 \='EP96YA;64@ M7U1P/@H):6YL:6YE('-Q=6%D7W!T<CQ?5' ^.CIE;&5M96YT7W1Y<&4@*B!S M<75A9%]C87-T*%]4<" J(&%?<"D*"7L*"0ER971U<FX@<F5I;G1E<G!R971? M8V%S=#QS<75A9%]P='(\7U1P/CHZ96QE;65N=%]T>7!E("H^*&%?<"D["@E] ."@H*?0H*"B-E;F1I9_at_H` ` end
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk