|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-07-06 18:03:22
"Robert Ramey" <ramey_at_[hidden]> writes:
>> Thanks; I think I see why you need the templated ctors now.
>>
>> w.r.t. composing with a typedef, would
>>
>> boost::archive::iterators::insert_linebreaks<
>> boost::archive::iterators::base64_from_binary<
>> boost::archive::iterators::transform_width<
>> const char *,
>> 6,
>> 8
>> >::type
>> >::type
>> ,72
>> ,const char // cwpro8 needs this
>> >::type
>> base64_text;
>>
>> be much worse, for your purposes?
>
> Hmmm - I read this as creating an instance of base64_text - presumably on
> the stack.
Eh? All I did was make an exact copy of code you posted, and change
">" to ">::type" everywhere.
> I don't see how I could use this to do:
>
>> std::copy(
>> base64_text(address),
>> base64_text(
>> address + count
>> ),
>> oi
>> );
>
> which is what I REALLY wanted to do.
That's the templated ctor part.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk