Boost logo

Boost :

From: Maxim Egorushkin (e-maxim_at_[hidden])
Date: 2003-06-14 11:39:43


"Larry Evans" <jcampbell3_at_[hidden]> wrote in message
news:3EEB2A3C.3000409_at_prodigy.net...

> I'll soon upload a commented an simplified version of marg_ostreambuf
> and maybe a templatized version to parameterize the addedState. I may
> rename it too to decorated_ostreambuf or something similar.

I think there is no need for marg_ostream at all. Why reinvent a bicycle if
one can use original std::basic_ostream<>. And it would be great if
marg_ostreambuf were parameterized by char and traits types like original
std::basic_streambuf<>.

Here is the code for decorator.

begin 666 main_cout.cpp
M(VEN8VQU9&4@(F)O;W-T+V-O;%]I;R]M87)G7V]S=')E86TN:'!P(@T*#0HO
M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O
M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O
M+R\O+R\-"@T*=&5M<&QA=&4\8VQA<W,@<W1R96%M7W1Y<&4^#0IC;&%S<R!I
M9&5N=%]D96-O<F%T;W(-"GL-"G!R:79A=&4Z#0H)='EP961E9B!T>7!E;F%M
M92!S=')E86U?='EP93HZ8VAA<E]T>7!E(&-H87)?='EP93L-"@ET>7!E9&5F
M('1Y<&5N86UE('-T<F5A;5]T>7!E.CIT<F%I='-?='EP92!T<F%I='-?='EP
M93L-"@ET>7!E9&5F('-T9#HZ8F%S:6-?<W1R96%M8G5F/&-H87)?='EP92P@
M=')A:71S7W1Y<&4^(&)U9F9E<E]T>7!E.PT*#0IP=6)L:6,Z#0H):61E;G1?
M9&5C;W)A=&]R*'-T<F5A;5]T>7!E)B!S+"!I;G0@:61E;G0@/2 R*0T*"0DZ
M"7-T<F5A;5\H<R \/"!S=&0Z.F9L=7-H*0T*"0DL"6]R:6=I;F%L7V)U9F9E
M<E\H<RYR9&)U9B_at_I*0T*"0DL"6UA<F=I;E\H;W)I9VEN86Q?8G5F9F5R7RD-
M"@D)+ EI9&5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.3 Q,C,T-38W
M.#DP,3(S-#4V-S_at_Y,#$R,S0U-C<X.3 Q,C,T-38W.#DP(B @#0H@(" @(" [
M(&UO=70\/&X\/"(@;&]N9R!L:6YE<STB/#QE;F1L#0H@(" @(" [(&9O<BAU
M;G-I9VYE9"!I/3 [(&D\;CL@*RMI*0T*(" @(" @("![(&UO=70\/&QO;F=?
M;&EN93P\96YD; T*(" @(" @(" [?0T*(" @(" @.WT-"B @(" [?0T*(" [
M(&9O=70\/")E;F0@;6%R9U]T97-T(CP\96YD; T*(" [(&9O=70\/&YU;2LK
M/#QE;F1L#0H@(#L_at_9F]U=#P\;&EN93P\96YD; T*#0H@(#L_at_8V]U=" \/" B
M7&Y<;EQN57-I;F<@9&5C;W)A=&]R7&Y<;B([(&8H*0T*#0H@(#L@<F5T=7)N
*(# -"B @.WT-"@``
`
end


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk